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

If packaged

Even if the method with the final qualifier set in the parent class is overridden in the child class, no error is displayed at compile time, and an error is displayed at the execution stage 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.

Recommended Posts

[Java] final override error is not displayed at compile time
The devise error message is not displayed properly.
[Rails] What to do when the Refile image is not displayed when writing the processing at the time of Routing Error
[Error] The app is not displayed in the production environment
"tx" is not bound error
[Rails] fields_for is not displayed
Compile Java at the command prompt
Java Calendar is not a singleton.
Why Java Vector is not used
Image is not displayed in production environment
When UITextView is not displayed (Swift, Xcode)