Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What is the purpose of upcasting in Java?
To convert a superclass reference to a subclass reference.
To prevent inheritance between classes.
To access methods and fields specific to the superclass
To invoke overridden methods in the superclass.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!