Java MCQ : Literals in Java (Multiple Choice Questions)


Question 1
_________ literal is used to Create a Values of the integral types byte, short, int, and long.
A
Double
B
Byte
C
Long
D
Integer
Question 1 Explanation: 
Values of the integral types byte, short, int, and long can be created from int literals
Question 2
Number System whose digits consists of the numbers 0 through 9 is called as ______________.
A
Decimal Number System
B
Binary Number System
C
Octal Number System
D
Hexa Decimal Number System
Question 3
Hexadecimal Numbers are having base _________.
A
8
B
2
C
10
D
16
Question 4
In java programming, You can create binary literal in ________.
A
Java SE 6 and later
B
Java SE 1 and later
C
Java SE 5 and later
D
Java SE 7 and later
Question 5
Integer literal containing value "F" comes under __________ system.
A
None of these
B
Binary Number
C
Octal Numer
D
Hexa Decimal Number
There are 5 questions to complete.