jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes exception & proceed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "exception & proceed " Watch "exception & proceed " New topic

exception & proceed

Mahesh Asrani

Joined: Mar 03, 2005
Posts: 15
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

Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
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 ]

Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
I agree. Here's the link: http://aspose.com/file-tools
subject: exception & proceed
It's not a secret anymore!