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

📄 isinstancetest.java

📁 linux下编程用 编译软件
💻 JAVA
字号:
class IsInstanceTest extends Thread implements Cloneable{  static void main(String args[])    {      IsInstanceTest test = new IsInstanceTest();      if (test instanceof java.lang.Object)	pass("IsInstanceTest is instance of java.lang.Object");      else	fail("IsInstanceTest is not instance of java.lang.Object");      if (test instanceof java.lang.Cloneable)	pass("IsInstanceTest is instance of java.lang.Cloneable");      else	fail("IsInstanceTest is not instance of java.lang.Cloneable");      if (test instanceof java.lang.Runnable)	pass("IsInstanceTest is instance of java.lang.Runnable");      else	fail("IsInstanceTest is not instance of java.lang.Runnable");    }  static void pass(String message)    {      System.out.println("PASSED: "+message);    }  static void fail(String message)    {      System.out.println("FAILED: "+message);    }}

⌨️ 快捷键说明

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