what is castingthere are two types of casting


What is casting?

There are two types of casting, casting among primitive numeric types and casting among object references. Casting among numeric types is used to convert larger values, like double values, to smaller values, such as byte values. Casting among object references is used to refer to an object by a compatible class, interface, or array type reference.

 

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: what is castingthere are two types of casting
Reference No:- TGS0310925

Expected delivery within 24 Hours