Answers for "max value short java"

2

short.max_value java

Short.MIN_VALUE =  -32768
Short.MAX_VALUE = 32767
  
// Example
  
public class MyClass {
    public static void main(String args[]) {
      
      short z = Short.MAX_VALUE;
      short y = Short.MIN_VALUE;

      System.out.println("Max value= " + z);
      System.out.println("Min value= " + y);
    }
}
Posted by: Guest on July-18-2021
3

long max value java

Long.MAX_VALUE == 9_223_372_036_854_775_807L // (9223372036854775807)
Long.MIN_VALUE == -9_223_372_036_854_775_808L // (-9223372036854775808)
Posted by: Guest on April-21-2021
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