Java OCA OCP Practice Question 649

Question

Which of the following is not a primitive data value in Java?

Select 2 options

  • A. "x"
  • B. 'x '
  • C. 10.2F
  • D. Object
  • E. false


Correct Options are  : A D

Note

Java has only the following primitive data types:

  • boolean,
  • byte,
  • short,
  • char,
  • int,
  • long,
  • float and
  • double.



PreviousNext

Related