Multiple Choice Question

Quiz Guidelines

 

QID: 
131
Question: 

Consider the following code:

public class Conversion{
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

A. It will print 0.
B. It will not print 0.
C. It will not compile.
D. It will throw an exception at runtime.
E. None of the above.

Q&A Set: