There is something that is not very clear to me,
Java language especification says that in 6.3.1 Shadowing Declarations, that you can have a class variable named X, and a local variable with the same name!!! why the following is not compiling???
public class pac {
public pac() {
int e=2;
try{
System.in.read();
}catch(Exception e){}
}
}
what is the problem??? e (exception not the integer) has only the try/cathc scope isn't it???