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

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

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
142
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Ranjeet
Publisher
πŸ“ˆ
88%
Success Rate