If you try to assign any integer value to the double variable then, by default, it will be cast to the double data type . For example, 6 would be represented as 6.0.
If you try to assign any integer value to the double variable then, by default, it will be cast to the double data type . For example, 6 would be represented as 6.0.