class Demo76
{
public static void main(String[] args)
{
Throwable b = new Throwable("偶尔咳嗽");
System.out.println("toString:"+b.toString()); // java.lang.Throwable 返回的是用于描述该异常情况的类的完整类名。 包名+ 类名 = 完整类名。
System.out.println("meessage:"+ b.getMessage());
test();
}
public static void test(){
Throwable a = new Throwable("偶尔打喷嚏");
a.printStackTrace();
}
}