⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 debug6_3.java

📁 程序练习中包括书中实例程序代码和练习中要用到的代码,是压缩文件
💻 JAVA
字号:
package questions.c6;
class D63_E1 extends Exception {
}
class D63_E2 extends D63_E1 {
}
public class Debug6_3 {
   private int x;
   public String toString() {
      return String.valueOf( x );
   }
   public void f( int input ) throws Exception {
      x = input;
      throw D63_E1;
   }
   public static void main( String[] args ) {
      Debug6_3 a = new Debug6_3();
      try {
         a.f( 275 );
      } catch ( Exception e ) {
         System.out.println( e );
      } catch ( D63_E1 e ) {
         System.out.println( e );
      }
      System.out.println( a );
   }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -