Results 1 to 5 of 5

Thread: About Finally block

  1. #1

    About Finally block

    Hai to all,can anyone tell me how to stop the execution of finally block explicitly??


  2. #2
    Junior Member
    Join Date
    Jul 2008
    Answers
    1

    Re: About Finally block

    try {
    int a=40,b=0;
    int d=a/b;
    }catch(Exception e){
    System.out.println("Exception: "+e);
    System.exit(1);
    } finally {
    System.out.println("finally");
    }


  3. #3

    Re: About Finally block

    Quote Originally Posted by gayathrikundurthi View Post
    Hai to all,can anyone tell me how to stop the execution of finally block explicitly??
    we can exit from the program or else surely finally will be executed


  4. #4

    Re: About Finally block

    Quote Originally Posted by gayathrikundurthi View Post
    Hai to all,can anyone tell me how to stop the execution of finally block explicitly??

    u can write in system.exit()


  5. #5
    Junior Member
    Join Date
    Oct 2007
    Answers
    1

    Re: About Finally block

    Quote Originally Posted by venkatramanareddy View Post
    u can write in system.exit()
    yes
    He is the right


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact