Multiple choice

…………is a class defined in the java.lang package, whereas it is a primitive data type defined in the Java language.

  1. Int

  2. Float

  3. Char

  4. Integer

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

Integer is a wrapper class in the java.lang package that corresponds to the primitive type int. The other options are either primitive types or incorrect class names.