Converting one primitive datatype into another is known as type casting (type conversion) in Java . You can cast the primitive datatypes in two ways namely, Widening and, Narrowing.
Converting one primitive datatype into another is known as type casting (type conversion) in Java . You can cast the primitive datatypes in two ways namely, Widening and, Narrowing.