Multiple choice technology programming languages

A static method can refer to any instance variable of the class.

  1. True

  2. False

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

Static methods belong to the class rather than any specific instance. Therefore, they cannot directly access instance variables because those variables require a specific object instance to exist. They can only access other static members.