public class Tet {
public Tet(String s) throws Exception{
System.out.println("构造开始");
throw new Exception("构造出现异常");
}
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Tet t = null;
try{
t = new Tet("TTT");
//System.out.println("1");
}catch(Exception e){
if(t == null)
System.out.println("构造出现异常:t is null!");
}
}