How many type of integer constants are allowed in Java? How are they written?
Answers
Answered by
2
Answer:
three types
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.
Explanation:
Answered by
5
Answer:
Three types. 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.
Explanation:
Java allows three types of integer constants: Octal (base 8), Decimal (base 10), and Hexadecimal (base 16).
Hope this answer help you
Have a nice day
Similar questions