Answers for "max short value 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

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language