Answer:
No,we can not write any Return Statement inside Finally Block.It will throw an error at the Complie-Time saying that:-
"Control cannot leave the body of a finally clause"
Meaning that finally block is only used for Releasing Objects or Calling any function other than Returning Some Value.
Asked In: Many Interviews |
Alert Moderator