Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

exception & proceed

 
Mahesh Asrani
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

How to acheive this in a java program.

Normally when in a java program an exception is raised the program comes to an abrupt halt.

How to avoid this & proceed even if the exception is raised i.e. not to break the further execution of the program

Bye
 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java has a very good exception handling mechanism. You have to use

try { } catch(){} and finally blocks for handling exceptions.
Check this.
[ April 07, 2005: Message edited by: Srinivasa Raghavan ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic