Tulika Shivani

Tulika Shivani

  • NA
  • 10
  • 1.2k

Upcasting and Downcasting

Apr 13 2018 10:55 AM
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)