ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Making Java Objects Comparable
Subject:   Not anonymous classes :-)
Date:   2003-03-18 01:54:56
From:   jczeus
Response to: Not anonymous classes :-)


Being even more pedantic:
Following the java naming conventions, these two (static) members should start with a lowercase. Perhaps this is what produced some confusion: these are no classnames!
The proof that these classes are anonymous: compilation of the Person class also produces the two files: Person$1.class and Person$2.class.