answersLogoWhite

0

Why is there type casting in java?

User Avatar

Anonymous

13y ago
Updated: 8/19/2019

Type casting exists to allow the use of base class or base interface reference but yet if you know that the object in hand is aspecific derived class, you can typecast and access methods available only in the derived class.

User Avatar

Wiki User

13y ago

What else can I help you with?