Multiple choice technology programming languages

Class variables can be accessed only with the class name.

  1. True

  2. False

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

Class variables (static variables) can be accessed using the class name (e.g., ClassName.variableName) or via an instance of the class (e.g., instanceName.variableName). While using the class name is preferred for clarity, it is not the 'only' way.