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

📄 instinit2.java

📁 this gcc-g++-3.3.1.tar.gz is a source file of gcc, you can learn more about gcc through this codes f
💻 JAVA
字号:
// Class instinit2// Generated on Wed Feb  2 17:52:49 PST 2000// The instance initializer throws a checked exception. This is OK// since the constructors declares it in its `throws' clause -- at// least that's what the specs are saying.class instinit2 {    String buffer = "Oink Oink!";    {        System.out.println ("Checking the oink...");        if (buffer != null)            throw new Exception ("It just oinked");    }    instinit2 () throws Exception    {        System.out.println ("Ctor");    }    public static void main (String[] arg)    {        System.out.println ("Testing class `instinit2'...");        try {            System.out.println (new instinit2 ().buffer);        } catch (Exception e) {            System.out.println (e.toString());        }    }} 

⌨️ 快捷键说明

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