This program demonstrates implicit type casting in Java. An integer value of 50 is first printed, then assigned to a float variable without explicit casting. When printing the float variable, the value is shown as 50.0, demonstrating an implicit narrowing conversion from int to float.
This program demonstrates implicit type casting in Java. An integer value of 50 is first printed, then assigned to a float variable without explicit casting. When printing the float variable, the value is shown as 50.0, demonstrating an implicit narrowing conversion from int to float.
This program demonstrates implicit type casting in Java. An integer value of 50 is first printed, then assigned to a float variable without explicit casting. When printing the float variable, the value is shown as 50.0, demonstrating an implicit narrowing conversion from int to float.