aspose file tools
The moose likes Java in General and the fly likes Null pointer before finally block Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Null pointer before finally block" Watch "Null pointer before finally block" New topic
Author

Null pointer before finally block

Santosh Kumar Nayak
Ranch Hand

Joined: Aug 02, 2011
Posts: 141
If there is a NULL Pointer Exception before FINALLY BLOCK then will the finally block get executed ?
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3882
    
  18

Did you read the Oracle tutorial on the finally-block?

http://docs.oracle.com/javase/tutorial/essential/exceptions/finally.html


The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
Santosh Kumar Nayak
Ranch Hand

Joined: Aug 02, 2011
Posts: 141
Thank you for the useful link
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Null pointer before finally block
 
It's not a secret anymore!