Can we have return statement in finally clause? What will happen?
Answer / Ravindra
No, you cannot have a `return` statement inside the `finally` block. The `finally` block is used for ensuring that some cleanup code always executes, whether an exception occurs or not. If you want to exit from multiple blocks (including the `try`, `catch`, and `finally` blocks), use the `break` statement instead.
| Is This Answer Correct ? | 0 Yes | 0 No |
Name the class that used to read objects directly from a stream?
Explain the difference between comparator and comparable in java?
What is the purpose of having the concept of overloading?
What is a null class?
What is difference between class and object in java?
What is local declaration?
What is externalizable interface?
What is string in java with example?
How a variable is stored in memory?
What are dot operator queries?
What is collections framework?
how to handle exceptions in ejb?