Min and Max values of short


public class Main {
    public static void main(String[] args) {
        System.out.println(Short.MIN_VALUE);
        System.out.println(Short.MAX_VALUE);
    }
}

Output:


-32768
32767
Home 
  Java Book 
    Runnable examples  

Data Type Short:
  1. Create Short from short value
  2. Convert Short to primitive data type
  3. Convert short to String
  4. Convert String to short primitive
  5. Min and Max values of short
  6. short overflow