Is it possible overriding the method to change its access modifier from the "package-private" to "protected"?
Since the protected modifier imposes fewer restrictions than the default access modifier, such redefinition is allowed.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Sign Up Now
or Subscribe for future quizzes