Examveda
Examveda

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: Option D


This Question Belongs to Java Program >> Overriding And Overloading

Join The Discussion

Related Questions on Overriding and Overloading