Constants are the fixed values
that do not change during the execution of a program. Java
supports several types of
constants.
Integer Constant
An integer constant refer to a
sequence of digits. There are 3 types namely:
Decimal Integer ex:123 -321 0
654321
octal Integer ex:037 0 0435 0551
hexadecimal integer ex:0X2 0X9F 0Xbcd 0x
No comments:
Post a Comment