Which of the following is not a primitive data type in Java?
A) boolean
B) byte
C) char
D) string
Answer: D
Explanation: string is not a primitive data type in JavA) It is a class in the Java standard library.