Question
Which statement about Class Loading and Initialization is the strongest interview answer?
- Class Loading and Initialization is mostly a naming style choice and has little effect on runtime or design.
- Class Loading and Initialization exists mainly to reduce the number of Java files in a project.
- A class is loaded, linked, and initialized before its static state is fully ready for normal use.
- Class Loading and Initialization matters only for frontend frameworks, not for core Java applications.
Hint
Start with the core rule behind Class Loading and Initialization.
Answer and rationale
Correct answer: C. A class is loaded, linked, and initialized before its static state is fully ready for normal use.
A class is loaded, linked, and initialized before its static state is fully ready for normal use. This is the base concept interviewers commonly test first.
Track: Java