Answers for "max_value in java"

3

java max

public class Test { 

   public static void main(String args[]) {
      System.out.println(Math.max(12.123, 12.456));      
      System.out.println(Math.max(23.12, 23.0));  
   }
}
Posted by: Guest on November-16-2019
0

max_value in java

(stores the maximum possible value for any integer variable)
    public static void main(String[] arg)
    {
  		System.out.println("Integer.MAX_VALUE = "
                           + Integer.MAX_VALUE);///output :-2147483647
    }
}
Any integer variable cannot store any value beyond this limit
Posted by: Guest on June-04-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language