-
What is the output of this program?
public class Finally_Example
{
public static void main(String[] args)
{
try
{
return;
}
finally
{
System.out.println( "Finally block executed..." );
}
}
}
-
- Compilation Error
- Runtime Error
- Finally block executed...
- All of above
- None of these
Correct Option: C
Output: Finally block executed...
Because finally will execute always.