Sunday, May 18, 2008

Numerical Literals

In Java programs, numerical literals represent quantitative values, Java supports several different numerical systems, including octal (a numbering system with a base of 8) and hexadecimal (using a base of 16). If needed, you can specify the literal to be long by appending the letter “L”: 24050000L. An int is the default type used for integer literals.

No comments: