Which of the following would compile without error?

Options
- int a = Math.abs(-5);
- int b = Math.abs(5.0);
- int c = Math.abs(5.5F);
- int d = Math.abs(5L);


CORRECT ANSWER : int a = Math.abs(-5);

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement