A

Admin • 828.03K Points
Coach

Q. What will happen?
try {
return;
} finally {
System.out.println("Finally");
}

  • (A) Nothing is printed
  • (B) Finally
  • (C) Return
  • (D) Compile error

Explanation by: Admin
`finally` block is executed even if return is used in the try block.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.