logo

Crowdly

Señale qué es lo que imprime el siguiente código al ser ejecutado y por qué es e...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Señale qué es lo que imprime el siguiente código al ser ejecutado y por qué es ese el o los caracters impresos en consola.

public class Test { public static void main(String[] args) {

try {

System.out.println("1");

metodo();

System.out.println("2");

} catch (Exception e) {

System.out.println("3");

} finally {

System.out.println("4");

}

System.out.println("5");

}

public static void metodo() throws Exception {

throw new Exception();

}

}

More questions like this

Want instant access to all verified answers on moodle.esen.edu.sv?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!