Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Null pointer before finally block

 
Santosh Kumar Nayak
Ranch Hand
Posts: 143
Eclipse IDE IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If there is a NULL Pointer Exception before FINALLY BLOCK then will the finally block get executed ?
 
Stephan van Hulst
Bartender
Pie
Posts: 5553
53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you read the Oracle tutorial on the finally-block?

http://docs.oracle.com/javase/tutorial/essential/exceptions/finally.html
 
Santosh Kumar Nayak
Ranch Hand
Posts: 143
Eclipse IDE IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the useful link
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic