Imagem de fundo

Considere o seguinte código escrito na linguagem...

Considere o seguinte código escrito na linguagem PHP.


<?php

function inversa($x) {

if ($x==0) {

throw new Exception(' exception ');

}

return 1/$x;

}

try {

echo inversa(0);

echo " try ";

} catch (Exception $e) {

echo " catch ";

echo $e->getMessage();

} finally {

echo " finally ";

}

Ao se executar esse código, será impressa na tela a seguinte sequência de palavras:


A

try catch exception finally


B

try catch finally


C

catch exception finally


D

catch exception


E

finally catch exception