Min and Max values of data type short in Java
Description
The following code shows how to min and Max values of datatype short.
Example
/*from w w w.j av a 2 s .c o m*/
public class Main {
public static void main(String[] args) {
System.out.println(Short.MIN_VALUE);
System.out.println(Short.MAX_VALUE);
}
}
The code above generates the following result.
Home »
Java Tutorial »
Java Data Type »
Java Tutorial »
Java Data Type »