Numeric Literals Teaser

1 AM February 25, 2005

Question: What are the largest integer and long literals allowed by the Java compiler? Bonus points for explaining what is odd about them, and a possible reason that the Java design team allowed this seeming inconsistency.

PS: There are two answers, either of which I would consider correct.

By alang | # | Comments (4)
(Posted to javablogs and Java)
© 2003-2006 Alan Green