Tuesday, May 20, 2008

Literals Notes 2

Literals Notes 2

Floating-point types also let you specify scientific notation by using the letter e or (E) to represent the exponential power. For example, the value 2.54 x 10 power 5 represented in Java is 2.54e5 or 2.54e5f housed in the float type.

Unlike C and C ++, Java has Booleans literals, Java Booleans represent either the non-numerical value true or false.

No comments: