Question PRG-JAVA-0003
EasyWhich of these is NOT a primitive type in Java?
- A.
boolean
- B.
int
- C.
Show answer and explanation
Answer: D
String is a class (a reference type). Java has eight primitives: byte, short, int, long, float, double, char and boolean.