214k views
2 votes
Which of the following is false? A static method has no this reference. A static method can be accessed even when no objects of its class have been instantiated. A static method can call instance methods directly. A static method must be used to access private static instance variables.

User Lilezek
by
5.1k points

1 Answer

5 votes

Answer:

Not only can we have static variables in a class, but we can have static methods. ... A static method can be used when the storage in an object is not needed. ... So when a method doesn't need to access any stored values, a static method is ... with the class definition and not each object, we can call static methods which ...

User Esteban Vallejo
by
5.3k points