0
What is the output of the following Java program?
public class Main {
public static void main(String[] args) {
System.out.println(Math.round(2.5) + " " + Math.round(-2.5) + " " + Math.floor(-2.5));
}
}- A3 -2 -2.0
- B3 -2 -3.0
- C2 -2 -2.0
- D3 -3 -3.0
Correct answer: B