Java.lang Classes on Java related Questions and Answers


Question :   Which of the following would compile without error?
1. int a = Math.abs(-5);
2. int b = Math.abs(5.0);
3. int c = Math.abs(5.5F);
4. int d = Math.abs(5L);
Answer :   1 - int a = Math.abs(-5);  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter