Computer Science, asked by tuheliray, 9 months ago

are type conversion and type casting in java same?

Answers

Answered by disha1608
1

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. In this case both datatypes should be compatible with each other.

Hope it helps you..........

Similar questions