Monday, May 19, 2008
Literals Notes
Appended letters for specifying a particular data type when using literals are not case sensitive. For example, 100001 and 10000L both specify this literal to be a numerical type long. Extremely large values utilize the integer data type long. Floating-point values are automatically assumed to be a type double. However if you wish to use the smaller floating-point type float, then you need to append a letter “f” to represent that data type 2.313f.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment