Skip to content

Java program to find maximum of two numbers using Math.max()

10
  • Purba Chakraborty
  • Deepali Jain
  • Foodaholix
  • N.Velmurugan
  • Damyanti
  • Avinash
Java program to find maximum of two numbers using Math.max()

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

Read this post on instanceofjava.com


Popular Articles by this blogger