Hi,,plz give me explanation of upcasting and downcasting using reference with examples.
Upcasting is the conversion of data type from lower range data type to higher data type eg: int to long, byte to long, int to double etc.
Downcasting is the casting from a general to a more specific type, i.e. casting down the hierarchy.eg: double to byte, long to int etc.
For more information,