Java OCA OCP Practice Question 1616

Question

Which of the following do not denote a primitive data value in Java?.

Select the two correct answers.

  • (a) "t"
  • (b) 'k'
  • (c) 50.5F
  • (d) "hello"
  • (e) false


(a) and (d)

Note

String is a class, and "hello" and "t" denote String objects.

Java has the following primitive data types: boolean, byte, short, char, int, long, float, and double.




PreviousNext

Related