Java: Which statement about Primitive Types and Wrappers is the strongest interview answer?

Difficulty:

Easy

Questions:

1

Time Limit:

2 minutes

Passing Score:

100%

Question

Which statement about Primitive Types and Wrappers is the strongest interview answer?

  1. Primitives store raw values, while wrapper types are objects used by generics and many framework APIs.
  2. Primitive Types and Wrappers is mostly a naming style choice and has little effect on runtime or design.
  3. Primitive Types and Wrappers exists mainly to reduce the number of Java files in a project.
  4. Primitive Types and Wrappers matters only for frontend frameworks, not for core Java applications.

Hint

Start with the core rule behind Primitive Types and Wrappers.

Answer and rationale

Correct answer: A. Primitives store raw values, while wrapper types are objects used by generics and many framework APIs.

Primitives store raw values, while wrapper types are objects used by generics and many framework APIs. This is the base concept interviewers commonly test first.

Track: Java