Variables and Data Types – Multiple Choice Questions (MCQs)
-
-
2. Which of the following is a reference data type in Java?
-
3. What is the size of an `int` data type in Java?
-
4. What is the size of a `byte` data type in Java?
-
5. What is the size of a `short` data type in Java?
-
6. What is the size of a `long` data type in Java?
-
7. What is the size of a `float` data type in Java?
-
8. What is the size of a `double` data type in Java?
-
9. What is the size of a `boolean` data type in Java?
-
10. What is the size of a `char` data type in Java?
-
11. What is the default value of a numeric primitive data type in Java?
-
12. What is the default value of a `boolean` data type in Java?