Vidyalelo
Java Programming · Q18

Overriding and Overloading

Programming · Java Programming · question 18

Q18

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
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board