

InterviewSolution
Saved Bookmarks
1. |
Give the output of the following program segment : double x=2.9, y=2.5; System.out.println(Math.min(Math.floor(x),y)); System.out.println(Math.max(Math.ceil(x),y)); |
Answer» The output of programming segment is : 2.0 3.0 |
|