Curriculum
Course: Learn Java Programming
Login

Curriculum

Learn Java Programming

Quiz

Understanding Methods Overriding and Runtime Polymorphism in Java

Submit quiz
Once you submit, you will no longer be able to change your answers. Are you sure you want to submit the quiz?
1.

Can a private method be overridden?

Yes, always.
No, private methods cannot be overridden.
Yes, if the subclass is a nested class.
Yes, if the subclass is in the same package.