标签: java
类可以抛出异常,例如
class A throws Exception { public static void main(String [] args) { System.out.println("hello"); } }