Java: In Java, which comparison about Class Loading and Initialization is accurate?

Difficulty:

Easy

Questions:

1

Time Limit:

2 minutes

Passing Score:

100%

Question

In Java, which comparison about Class Loading and Initialization is accurate?

  1. There is no practical difference in behavior, performance, or API design when Class Loading and Initialization is involved.
  2. The oldest option related to Class Loading and Initialization is always the right production choice regardless of context.
  3. Differences around Class Loading and Initialization are mostly cosmetic, so correctness and maintainability do not change.
  4. Loading finds bytecode, linking verifies and prepares it, and initialization runs static setup logic.

Hint

Focus on the behavior or tradeoff, not just the keyword.

Answer and rationale

Correct answer: D. Loading finds bytecode, linking verifies and prepares it, and initialization runs static setup logic.

Loading finds bytecode, linking verifies and prepares it, and initialization runs static setup logic. This is the comparison that usually separates memorization from understanding.

Track: Java