Object Casting Java

What is casting? Assigning one data type to another or one object to another is known as casting. Java supports two types of casting – data type casting and object casting. Conditions of assigning objects of different classes one to another Same class objects can be assigned one to another and it is what we …

Object Casting Java Read More »