We can find maximum of two numbers by using if condition check. In java.lang.Math class also having a method Math.max() which will take two numbers and returns maximum number. We have separate methods for int , float , double and long. Java program to fin