Vidyalelo
Java Programming · Q151

Interfaces and Abstract Classes

Programming · Java Programming · question 151

Q151

What will be the output of the following Java program? 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
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board