1Short.MIN_VALUE = -32768
2Short.MAX_VALUE = 32767
3
4// Example
5
6public class MyClass {
7 public static void main(String args[]) {
8
9 short z = Short.MAX_VALUE;
10 short y = Short.MIN_VALUE;
11
12 System.out.println("Max value= " + z);
13 System.out.println("Min value= " + y);
14 }
15}