Q. What happens when a subclass tries to override a static method from the superclass in Java?

  • (A) It overrides the method successfully
  • (B) The static method is hidden
  • (C) It results in a compilation error
  • (D) The static method becomes final
πŸ’¬ Discuss
βœ… Correct Answer: (C) It results in a compilation error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
244
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ram Avtar Sharma
Publisher
πŸ“ˆ
94%
Success Rate