Q. What is the output of System.out.println(Math.max(3, 7));?

A
3
B
7
D
10
Solution:

Math.max() returns the greater of two values, so 7 is the output.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!