java.lang.Double max(double a,double b)


public static double max(double a,double b)

Java Code Example :

This java example source code demonstrates the use of max(double a,double b) method of Double class.

Some takeaways on this method:

  • Returns the greater of two double values as if by calling Math.max.
  • since JDK 1.8

Sample Output :

Running the above example source code will give the following output

Suggested Reading List :

References :