Multiple choice technology programming languages

Static method accecss non-static field or call non-static method (T/F)

  1. True

  2. False

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

Static methods belong to the class itself, not to any instance, so they cannot access instance members (non-static fields or methods) without an object reference. Attempting to do so results in a compilation error. The statement is False, making the claimed answer correct.