how many types of integer constant are available in java
Answers
Answered by
2
Ans: Java allows three types of integer constants: Octal (base 8), Decimal (base 10), and Hexadecimal (base 16).
An Octal integer must be started with a zero ’0′, a Hexadecimal integer starts with a ’0X’, all others are treated as decimal integer constant.
An Octal integer must be started with a zero ’0′, a Hexadecimal integer starts with a ’0X’, all others are treated as decimal integer constant.
Similar questions