-->

Widening(Up Casting) and Narrow(Down Casting) Conversion in Java

Posted by Admin on
Q: - What are the two type of Conversion in Java and UP Casting , Down Casting?

When the automatic conversion takes place then it is known as widening conversion or you can say the destination data type is larger than the source type.
When we have explicity do the conversion then it is known as narrowing conversion.In narrow conversion destination type is smaller than source type.




No comments:

Post a Comment