Multiple choice technology programming languages

It is legal to access a static method using an instance of the class?

  1. True

  2. False

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

In Java, it is syntactically legal to access a static member or method using an instance variable of that class, although it is discouraged as a bad practice because static members belong to the class itself.