Which of the following are primitive types?
-
Float
-
None of the above
-
byte
-
String
-
integer
C
Correct answer
Explanation
In Java, 'byte' is a primitive type. 'String' is a class (reference type). 'integer' is not a valid keyword (it's 'Integer' wrapper or 'int' primitive). 'Float' is a wrapper class (primitive is 'float'). Therefore, 'byte' is the only primitive type listed.