Phùng Quang Phi
New member
What will be the output of the following Java code?
A. Finally
B. Compilation fails
C. The code runs with no output
D. An exception is thrown at runtime
Code:
public class San
{
public static void main(String[] args)
{
try
{
return;
}
finally
{
System.out.println( "Finally" );
}
}
}
B. Compilation fails
C. The code runs with no output
D. An exception is thrown at runtime