Computer Science, asked by ICSEExam711, 4 months ago

How many type of integer constants are allowed in Java? How are they written?​

Answers

Answered by pranav20071011
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 Bangtanarmygirl777
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