1
Answer

Upcasting and Downcasting

I have studied that upcasting happens automatically in JAVA but am not sill cleared with the concept of downcasting. Whether is it possible to do downcasting without any instanceof operator or is necessary to downcastcast each and every object of superclass to typecast in subclass?

Answers (1)