Please enable JavaScript to use CodeHS

Want to receive Question of the Day updates? Subscribe Here

AP CSA Question of the Day Jan. 1, 2025

Reference
  1. Incorrect Correct No Answer was selected Invalid Answer

    Which of the following statements are true about static variables and methods of a class:

    I. They can be referenced by the class name (e.g., MyClass.staticMethod())
    II. They can be referenced from an Instance of the class (e.g., MyClass myInstance = new MyClass(); myInstance.staticMethod();)
    III. The values of a static variable are different between Instances of the same class