Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

How to continue after an Exception?  RSS feed

 
irshad ahmed
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Report post to moderator
Is it possible to continue a Java program after if it catches and deals with an exception?
For example, say I am processing 1000 records from a file, one at a time. If the 6th record causes a Java Exception, I want to be able to skip it and continue processing the remaining 994 records.
Is this possible with Java Exception handling? If so, how?
Thanks,
Irshad
[ April 06, 2004: Message edited by: irshad ahmed ]
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Irshad-
I'm glad you're trying to learn more about Java and how it can help you to deal with problems (and I think you're on the right track with Exception Handling). But please don't post the same thread in multiple forums. It's very confusing and wastes peoples time when they answer a question thats already been answered elsewhere.
I've left the thread open in the Java in General (intermediate) forum, in order to continue the discussion. You can find it here.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!