Question OOP-POLY-0029
EasyWhat does the @Override annotation do in Java?
- A.
Prevents the method from being called
- B.
Makes the method private
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Polymorphism question
What does the @Override annotation do in Java?
Prevents the method from being called
Makes the method private
Sign up free to see the answer and a step-by-step explanation.
Asks the compiler to check that the method really overrides a parent method
Makes the method run faster