DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2006
    Posts
    28

    continue on finally

    is it possible to give continue statement on finally block

  2. #2
    Join Date
    Nov 2006
    Posts
    35
    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

  1. Replies: 12
    Last Post: 05-23-2002, 11:24 AM
  2. Replies: 6
    Last Post: 01-22-2002, 10:59 PM
  3. TECH TIP: Break - Edit - Continue alternatives
    By Larry Serflaten in forum .NET
    Replies: 19
    Last Post: 12-10-2001, 10:19 AM
  4. edit and continue, immediate window
    By Alex Tsukernik in forum .NET
    Replies: 12
    Last Post: 06-26-2001, 06:09 PM
  5. Infragistics/Sheridan new registration policy
    By Lowell Williams in forum vb.announcements
    Replies: 18
    Last Post: 02-10-2001, 05:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links