DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2006

    continue on finally

    is it possible to give continue statement on finally block

  2. #2
    Join Date
    Nov 2006
    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!");
    System.out.println("-> " + i);
    catch(Exception exc) {

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

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
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.