Explanation: Primitive Datatypes are defined by Java. Reference Datatypes are user defined, created using defined constructors of class. 2. How many Primitive data types are there in Java?
A. 4
B. 2
C. 8
D. 7
Answer:A
Explanation: Primitive Datatypes are defined by Java. Reference Datatypes are user defined, created using defined constructors of class. 2. How many Primitive data types are there in Java?
A. 4 B. 2 C. 8 D. 7
Explanation: Java defines eight simple types of data which are put in four groups. They are integers, floating-point numbers, boolean, characters. 3. Which of the following data types comes under ‘Integer’ data type?