Question
Which statement about Primitive Types and Wrappers is the strongest interview answer?
- Primitives store raw values, while wrapper types are objects used by generics and many framework APIs.
- Primitive Types and Wrappers is mostly a naming style choice and has little effect on runtime or design.
- Primitive Types and Wrappers exists mainly to reduce the number of Java files in a project.
- 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