Which of the following is not a primitive data type?
Show answerHide answer
Correct answer: (C) String
Explanation
In Java, String is a class (a reference type), not a primitive type. boolean, byte and double are primitives.
Correct answer: (C) String
Explanation
In Java, String is a class (a reference type), not a primitive type. boolean, byte and double are primitives.
This is question 19 of DSSSB TGT Computer Science Practice Set 3. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.