πŸ“Š JAVA
Q. What will be the output of the following Java code?
public class A
{
public static void main(String[] args)
{
try
{
return;
}
finally
{
System.out.println( "Finally" );
}
}
}
  • (A) Finally
  • (B) Compilation fails
  • (C) The code runs with no output
  • (D) An exception is thrown at runtime
πŸ’¬ Discuss
βœ… Correct Answer: (A) Finally

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
65
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Vinay
Publisher
πŸ“ˆ
99%
Success Rate