Q. What is the purpose of the "@Override" annotation in Java?

  • (A) To make a method static
  • (B) To create a new method
  • (C) To declare a variable
  • (D) To indicate that a method is intended to override a superclass method
πŸ’¬ Discuss
βœ… Correct Answer: (D) To indicate that a method is intended to override a superclass method

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
98
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Shiva Ram
Publisher
πŸ“ˆ
95%
Success Rate