This is a rather silly doubt from me.
But i would appreciate clarification from somebody.
(This qn is from Markus Green mock 2)
In the constructor there is a possibility that an IOException can be thrown,
but why is it not necessary that the main method declare it, in it's throws clause
(or try-catch be used)
Thanx in advance

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(){}
protected ExcepDemo(){
try{
DataInputStream din = new DataInputStream(System.in);
System.out.println("Pausing");
din.readChar();
System.out.println("Continuing");
this.amethod();
}catch(IOException ioe) {}
}
}