/*
* file: ObjectIsGod.java
* package: oreilly.hcj.review
*
* This software is granted under the terms of the Common Public License,
* CPL, which may be found at the following URL:
* http://www-124.ibm.com/developerworks/oss/CPLv1.0.htm
*
* Copyright(c) 2003-2005 by the authors indicated in the @author tags.
* All Rights are Reserved by the various authors.
*
########## DO NOT EDIT ABOVE THIS LINE ########## */
/**
* Demonstrates that all classes descend from the type <tt>java.lang.Object</tt>.
*
* @author <a href=mailto:kraythe@arcor.de>Robert Simmons jr. (kraythe)</a>
* @version $Revision: 1.3 $
*/
publicclass ObjectIsGod {
/**
* Main Method.
*
* @param args Command line arguments.
*/
publicstaticfinalvoid main(final String[] args) {
System.out.println(SomeClass.class + " --|> " + SomeClass.class.getSuperclass());
System.out.println(SomeOtherClass.class + " --|> "
+ SomeOtherClass.class.getSuperclass());
}
/**
* Class with implicit java.lang.Object inheritance.
*/
publicclass SomeClass {
}
/**
* Class with explicit java.lang.Object inheritance.
*/
publicclass SomeOtherClass extends Object {
}
}
/* ########## End of File ########## */