Multiple choice java

Which of the following are primitive types?

  1. Float

  2. None of the above

  3. byte

  4. String

  5. integer

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In Java, 'byte' is a primitive type. 'String' is a class (reference type). 'integer' is not a valid keyword (it's 'Integer' wrapper or 'int' primitive). 'Float' is a wrapper class (primitive is 'float'). Therefore, 'byte' is the only primitive type listed.