1.

Which of the following would compile without error?

A. int a = Math.abs(-5);
B. int b = Math.abs(5.0);
C. int c = Math.abs(5.5F);
D. int d = Math.abs(5L);
Answer» B. int b = Math.abs(5.0);


Discussion

No Comment Found

Related MCQs