Question 19

Which of the following is not a primitive data type?

  1. ABoolean
  2. BByte
  3. CString
  4. DDouble
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.

From DSSSB TGT Computer Science Practice Set 3

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.