home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #2 / Amiga Plus CD - 2004 - No. 02.iso / AmigaPlus / Tools / Development / jamiga001 / bin / TestClass.java < prev    next >
Encoding:
Java Source  |  2004-01-31  |  628 b   |  12 lines

  1. class TestClass {
  2.     public static void main(String[] args) throws Exception {
  3.         Class test = Class.forName("java.lang.Exception");
  4.         System.out.println("Classname: " + test.getName());
  5.                 System.out.println("Superclass name: " + test.getSuperclass().getName());
  6.                 Class[] interf = test.getSuperclass().getInterfaces();
  7.                 System.out.println("Implements " + interf.length + " interfaces");
  8.                 for(int i=0; i<interf.length; i++)
  9.                     System.out.println("Interface " + (i+1) + " = " + interf[i].getName());
  10. //        Object instance = test.getInstance();
  11.     }
  12. }