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

📄 fullconstructors.java~1~

📁 银行管理系统,根据实习的要求以及参考现实中的银行数据库系统
💻 JAVA~1~
字号:
package bank;

class myexception extends Exception{
public myexception(){}
public myexception(String msg){super(msg);}
}
public class fullconstructors{
        public static void f() throws myexception{
                System.out.println("throw myexception from f()");
                throw new myexception();
        }
        public static void g() throws myexception{
                System.out.println("throw myexception from g()");
                throw new myexception("originate");
        }
        public static void main(String[] args)
        {
                try{
                        f();
                }catch(myexception ex){
                        ex.prinStackTrace();
                }
                try{
                        g();
                }catch(myexception ex){
                        ex.prinStatckTrace();
                }
        }
}

⌨️ 快捷键说明

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