What is Upcasting and Down casting In Java?

In this tutorial, we will learn What is Upcasting and Downcasting In Java? Upcasting which is also known as a generalization or widening is casting in the parent type or from an individual type to a common type whereas down casting means specialization or we can say narrowing means casting to a child type. Or … Read more

%d bloggers like this: