The Java Language Fundamentals section of the
SCJP 1.4 exam objectives
lists several topics. This page offers links to resources that
cover the following exam objective.
State the range of all primitive formats, data types and
declare literal values for String and all primitive types
using all permitted formats bases and representations.
The Java Language Specification, Section 4.2.1, Integral Types and Values
specifies the range of all primitive integral
types--byte, short, int, long, and char.
The range of the integral types is represented by static
fields of the wrapper classes java.lang.Byte,
java.lang.Short, java.lang.Integer, java.lang.Long, and
java.lang.Character.
Please see the
Field Summary for java.lang.Integer for more information.
To learn how Java represents integers using octal (base 8) and
hexadecimal (base 16) please see
The Java Language Specification, Section 3.10.1, Integer Literals.
To learn more about the binary representation of integral values
please see the Java Ranch Campfire Story titled
Cat and Mouse Game with Bits.
The Java Language Specification, Section 4.2.3, Floating-Point Types, Formats, and Values
specifies the range of both primitive floating-point
types--float and double. For the purposes of the exam, the
range of the floating-point types is represented by static
fields of the wrapper classes java.lang.Float and
java.lang.Double.
Please see the
Field Summary for java.lang.Double for more information.
To learn how Java represents floating point values
please see
The Java Language Specification, Section 3.10.2, Floating-Point Literals.
The boolean primitive type is defined in
The Java Language Specification, Section 4.2.5, The boolean
Type and boolean Values.
Boolean literals are defined in
The Java Language Specification, Section 3.10.3, Boolean Literals.
Character literals are defined in
The Java Language Specification, Section 3.10.4, Character Literals.