Literal Values for All Primitive Types : Literal « Java Source And Data Type « SCJP

Home
SCJP
1.Java Source And Data Type
2.Operators
3.Modifiers
4.Type Casting
5.Statements
6.Object Oriented
7.Thread
8.Utility Classes
9.File
SCJP » Java Source And Data Type » Literal 
1.7.2.Literal Values for All Primitive Types
A primitive literal is a source code representation of the primitive data types—in other words, 
an integer, floating-point number, boolean, or character. 


'b'          // char literal
42           // int literal
false        // boolean literal
2546789.343  // double literal
1.7.Literal
1.7.1.Literals are used to create values that are assigned to variables.
1.7.2.Literal Values for All Primitive Types
1.7.3.Literal integer numbers can appear in Java programs in base ten, hexadecimal, and octal forms
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.