Home » JAVA Programming » Methods » Question
  1. What is the output of this program?
    public class Result 
    {
    public static void main(String args[])
    {
    double num0 = 4.15;
    double num1 = 5.16;
    double num2 = Math.max( num0, num1 );
    System.out.print(num2);
    }
    }
    1. 5
    2. 5.1
    3. 4.15
    4. 4.1
    5. 5.16
Correct Option: E

5.16



Your comments will be displayed only after manual approval.