Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • \$\begingroup\$ Counted 84 tokens. Still did not tested it though. \$\endgroup\$ Commented Dec 1, 2012 at 22:02
  • \$\begingroup\$ Your answer is genial. Could trivially reduce to 83 tokens using String... args. \$\endgroup\$ Commented Dec 1, 2012 at 22:51
  • \$\begingroup\$ @Victor, that would complicate the question of whether it supports 7 different versions even more. I'm not aware of any compiler which supports Java 5 syntax and compiles to Java 1-compatible class files. \$\endgroup\$ Commented Dec 1, 2012 at 23:14
  • \$\begingroup\$ Good point. I forgot about that. \$\endgroup\$ Commented Dec 1, 2012 at 23:16
  • 1
    \$\begingroup\$ Java 1.1.8 (in MRJ 2.2.6) failed to compile this, until I added 17 more tokens: protected Class loadClass(String name, boolean resolve) { return Object.class; }. The current API docs neglect to mention how this was an abstract method before Java 1.2. I return Object.class because the method gets one call for "java.lang.Object". \$\endgroup\$ Commented Jun 28, 2014 at 2:58