user image

Pooja Sharma

Job Interview Skills
English
2 years ago

54. If I write return at the end of the try block, will the finally block still execute?

user image

Abhishek Mishra

2 years ago

No. In this case the finally block will not execute because when you say System.exit(0); the control immediately goes out of the program, and thus finally never executes.

Recent Doubts

Close [x]