1

What will be the output of the following Java program?
class Output{
public static void main(String arg[]){
double x = 3.1,y = 4.5,z;
z = Math.max(x,y);
System.out.print(z);
}
}

  • A

    true

  • B

    false

  • C

    3.1

  • D

    4.5