Considere as seguintes classes Java, que ocupam arquivos s public class Pa { String x,y,z; String r="vazio"; public Pa(String s1,String s2, String s x=s1; y=s2; z=s3; try { if(x==null || y==null || z= throw new Exception() } catch(Exception e) { z="a"; throw e; } finally { if(x==null) x="***"; if(y==null) y="***"; if(z==null) z="***"; } } public String get() { return r; } } public class Qb extends Pa { public Qb(String s1,String s2, String s super(s1,s2,s3); r=x+y+z; } } public class Main { public static void main(String[] args) Pa o=null; try { o=new Qb("a"," ","c"); } catch (Exception e) { System.out.print(“***Erro** } finally { if(o!=null) System.out.print(o.ge } } } 20 AGENTE DE TECNOLOGIA - Microrregião 158 -TI O BRASIL separados: s3) throws Exception { ==null) ); s3) throws Exception { { **“); et()); 0 GABARITO 1 BANCO DO O que será exibido no console quando o método main for exe
- A ac
- B a***a
- C a***c
- D ***Erro***
- E vazio