What is the result?
public class foo
{
public static void main (string[]args)
{
try
{
return;
}
finally
{
system.out.printIn("Finally");
}
}
}
- The program runs and prints nothing.
- The program runs and prints \"Finally\"
- The code compiles, but an exception is thrown at runtime.
- The code will not compile because the catch block is missing.
Correct Answer:
need an explanation for this answer? contact us directly to get an explanation for this answerThe program runs and prints "Finally"