Intermediate Java
Q55 / 100

What is the purpose of the @Override annotation?

Correct! Well done.

Incorrect.

The correct answer is B) It tells the compiler to check that this method is actually overriding a parent method

B

Correct Answer

It tells the compiler to check that this method is actually overriding a parent method

Explanation

@Override is a compile-time check. If the annotated method doesn't actually override a parent method, the compiler reports an error.

Progress
55/100