What will happen when you compile and run the following code?
public class X
{
public static void main(final String[] args)
{
System.out.println(method());
}
public static int method()
{
try
{
return 1;
}
finally
{
return 0;
}
}
}
A) Error: "Statement not reached 'return 1'."
B) Error: "Statement not reached 'return 0'."
C) Error: "finally illegal when no exception thrown in try block."
D) Error: "Catch block missing."
E) Output: 1.
F) Output: 0.