Which of the following is NOT a primitive data type in Java? A. short B. char C. String D. boolean
Question
Which of the following is NOT a primitive data type in Java? A. short B. char C. String D. boolean
Solution
The answer is C. String. In Java, String is not a primitive data type. It is actually a class. The primitive data types in Java are byte, short, int, long, float, double, boolean and char.
Similar Questions
Which of the following is a non-primitive data-type in java?(A) boolean (B) character (C) array (D) float (E) double (F) long
Which of the following is not a primitive data type in Java?booleancharStringfloat
What is the data type in Java that consists of a true or false value?a.)doubleb.)Stringc.)booleand.)int
Which is NOT a primitive data type in Java?*1 pointstringchardoublebyte
Which of the following are Java primitive data types? You can select more than one answer.Group of answer choicesArrayintbooleanstringClass
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.