1.关于接口中声明的变量
public interface In {
/*public static final*/ int a = 0;
}
public class TestIn implements In{
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int i=0;
TestIn t = new TestIn();
i = t.a;
i = In.a;
i = TestIn.a;
}
}
2.Exception
public class LException extends Exception{
}
public class HException extends LException{
}
public class TestException {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
try{
throw new HException();
}catch(HException ex){
}catch(LException e){
}
}
}