Java MCQ : Data Types in Java (Multiple Choice Questions)
Question 1 |
Which of the following is smallest integer data type ?
short | |
long | |
int | |
byte |
Question 2 |
Which of the following is not a primitive data type ?
enum | |
byte | |
int | |
short |
Question 3 |
Integer Data type does not include following primitive data type ____________.
byte | |
long | |
short | |
double |
Question 3 Explanation:
Integers includes byte, short, int, and long
Question 4 |
Which of the following data types comes under floating data types ?
double | |
float | |
byte | |
int | |
long |
Question 4 Explanation:
Floating-point numbers includes float and double
Question 5 |
Character data type cannot store following value.
Special Character | |
Letter | |
String | |
Digit |
There are 5 questions to complete.