Consider the following code:
public class Main{ public static void main (String [] args){ int i = 1234567890; float f = i; System .out.println (i - (int)f); } }
What will it print when run?
Select 1 option
Correct Option is : B
Actually it prints -46.
This is because the information was lost during the conversion from type int to type float as values of type float are not precise to nine significant digits.