📚 Practice Mode

Method Overloading and Method Overriding

Learn at your own pace with hints and detailed explanations

1 / 13
Multiple Choice

Which of the following statements is/are correct for static method in Java?

A. Static methods are always public.
B. Static method cannot access directly non-static method of the same class.

  1. Only A
  2. Only B
  3. Both A and B
  4. Neither A nor B