Multiple choice technology web technology

Which of the following are primitive types?

  1. byte

  2. String

  3. integer

  4. Float

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

In Java, primitive types are the basic data types built into the language: byte, short, int, long, float, double, char, and boolean. Among the options, only 'byte' is a primitive type. 'String' is a class, 'integer' is not a valid keyword (the primitive is 'int'), and 'Float' is a wrapper class (the primitive is 'float').