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.
Subscribe to:
Post Comments (Atom)
Welcome to techInterview, a site for technical interview questions, and other things that make you think!
0 comments:
Post a Comment