Advertisements
Advertisements
Question
State True or False.
‘int’ is a type of primitive data.
True or False
Advertisements
Solution
This statement is true.
Explanation:
The int data type is a predefined, core keyword built directly into Java. It is used to store 32-bit whole numbers (integers) without any fractions or decimals, making it one of the eight standard primitive data types.
shaalaa.com
Is there an error in this question or solution?
Chapter 2: Class as the Basis of all Computation - Exercises [Page 65]
