-
continue on finally
is it possible to give continue statement on finally block
-
yes, but it makes hardly any sense... finally is always executed - even if an exception occures within the try block. if you are talking about your file reading problem - this is not a solution. try to understand examples from the net or send the exact error message you get and the file you are trying to read etc...
here is a piece of code which is similar to what you want - you should not do it like that... you can put the continue in a finally block if you want...
for (int i=0; i<100; i++) {
try {
if (i%10 == 0) {
throw new Exception("Dividing by ten exception!");
}
else
System.out.println("-> " + i);
}
catch(Exception exc) {
System.err.println(exc.getMessage());
continue;
}
}
Similar Threads
-
By David Williams in forum .NET
Replies: 12
Last Post: 05-23-2002, 11:24 AM
-
Replies: 6
Last Post: 01-22-2002, 10:59 PM
-
By Larry Serflaten in forum .NET
Replies: 19
Last Post: 12-10-2001, 10:19 AM
-
By Alex Tsukernik in forum .NET
Replies: 12
Last Post: 06-26-2001, 06:09 PM
-
By Lowell Williams in forum vb.announcements
Replies: 18
Last Post: 02-10-2001, 05:22 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks