What will be the output of the following Java program? [code] class Output { public static void main(String args[])

Thu Ha

New member
What will be the output of the following Java program?
Code:
    class Output 
    {
         public static void main(String args[]) 
        {
            double x = 3.1;  
            double y = 4.5;
            double z = Math.max( x, y );
            System.out.print(z);
        }
    }
A. true
B. flase
C. 3.1
D. 4.5
 

Tìm kiếm

Back
Top