[Java] [Java] Final override error is not displayed at compile time

less than 1 minute read

In case of packaging

Even if the child class overrides the method with the final modifier set in the parent class, no error is displayed at compile time and an error is displayed at the stage of execution after compilation.

If not packaged

It seems that an error is displayed at compile time.

The behavior is different from the teaching material, so make a note of it.

Tags:

Updated: