Does finally always execute in Java?

Ads

 
 

Share on Google+Share on Google+

Java Coder
Does finally always execute in Java?
1 Answer(s)      3 years and 10 months ago
Posted in : Java Beginners

Does finally always execute in Java?

Ads
View Answers

December 24, 2013 at 3:35 PM


The finally block always called in Java. But if you call System.exit(), the finally block will not be called.


Ads









Ads

 
Advertisement null

Ads