Programming Languages Java Mcq
Sep 24, 2025

Which of the following is NOT a Java primitive data type?

Choose the correct answer:
A) int
B) String
C) boolean
D) char
Detailed Explanation
String is not a primitive data type in Java. It is a class. The 8 primitive data types are: byte, short, int, long, float, double, boolean, and char.
Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback