ICSE Class 10 Computer Applications Question 5 of 76

Revising Basic Java Concepts — Question 5

Back to all questions
5
Question

Question 5

What kind of constants are the following ?

14, 011, 0X2A, 17, 014, 0XBC1

Answer
14Decimal Integer Literal
011Octal Integer Literal
0X2AHexadecimal Integer Literal
17Decimal Integer Literal
014Octal Integer Literal
0XBC1Hexadecimal Integer Literal