Computer Science, asked by anannya12319, 6 months ago

user defined type of conversion in java​

Answers

Answered by MƦAttrαctívє
3

Answer:

Converting one primitive datatype into another is known as type casting (type conversion) in Java. ... Widening − Converting a lower datatype to a higher datatype is known as widening. In this case the casting/conversion is done automatically therefore, it is known as implicit type casting.

Answered by vv934532
1

Answer:

If the data types are compatible, then Java will perform the conversion automatically known as Automatic Type Conversion and if not then they need to be casted or converted explicitly. ... For example, assigning an int value to a long variable.

Similar questions