Why do we use @Override annotation?

Options
- To say to the compiler not to execute this override method.
- To say to compiler that this method is deprecated
- To check whether the subclass method is overrides from the superclass or not
- None of the above


CORRECT ANSWER : To check whether the subclass method is overrides from the superclass or not

Write your comments

 
   
 
 

Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement