Wednesday, 16 September 2009

Java Certification Question 0097

What will be output by the following line?

System.out.println(Math.floor(-2.1));

1) -2
2) 2.0
3) -3
4) -3.0



Answer :

4) -3.0

No comments:

Post a Comment