exception example

import java.io.*;
class Base{
public static void amethod()throws FileNotFoundException{}
}



public class ExcepDemo extends Base{
public static void main(String argv[]){
       ExcepDemo e = new ExcepDemo();
}

public static void amethod(int i)throws IOException{}
private boolean ExcepDemo(){
 try{
    DataInputStream din = new DataInputStream(System.in);
    System.out.println("Pausing");
    din.readChar();
    System.out.println("Continuing");
    this.amethod();
    return true;
    }catch(IOException ioe) {}
    finally{
    System.out.println("finally");
    }
    return false;
  }

}


I was trying above example from link
http://www.jchq.net/certkey/0203certkey.htm
did not understand output while running in eclipse ide.

I was trying to understand the output. Any links, ideas, resources,sample code highly appreciated. thanks in advance.
LVL 7
gudii9Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mick BarryJava DeveloperCommented:
its waiting for you input
you need to enter input into the eclipse console
0
for_yanCommented:
It prints "Pausing" and then blocks at
din.readChar();

until you provide input.
After it reads your input,
it prints "Continue"

0
msk_apkCommented:
you can not call this.amethod, as amethod is a static method. Also you are not calling the ExcepDemo() method, and you are just initializing ExcepDemo() constructor. You are doing nothing except initializing the constructor.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

CEHJCommented:
>>I was trying to understand the output.

There isn't any output - for the reasons given by msk_apk
0
CEHJCommented:
gudii9, you accepted the wrong answer. The correct answer is given at http:#35237879
0
Mick BarryJava DeveloperCommented:
Would you like me to point you at a pile of other questions where the same occurs :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.