Computer Applications
Predict the output of the following:
System.out.println(Math.min(-25.5, -12.5));
Java
Java Math Lib Methods
40 Likes
Answer
-25.5
Working
Math.min method returns the smaller of its 2 arguments. As -25.5 is smaller than -12.5 so it is the output.
Answered By
24 Likes