Which of the following is true in Java?

Loading

โœช Choose the correct option.

Which of the following is true in Java?

A. Static methods can only access static members (data and methods)
B. Non-static data members can be accessed by static methods
C. Static methods cannot be overloaded.
D. Static data members can only be accessed by static methods

Leave a Comment