Specifications
Sun Services
Java™ Programming Language
Module 3, slide 15 of 37
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Integral – byte, short, int, and long
The integral primitives have the following characteristics:
• Integral primates use three forms: Decimal, octal, or
hexadecimal
• Literals have a default type of int.
• Literals with the suffix L or l are of type long.
2 The decimal form for the integer 2.
077 The leading 0 indicates an octal value.
0xBAAC The leading 0x indicates a hexadecimal value.










