java lang Short Class
Short Class in Java
The Short class wraps the value of primitive data type short into Short object. An object of type Short contains a single field whose type is short. In other words the wrapper classes create objects for primitive data types. The wrapper classes are Boolean, Byte, Character, Short, Integer, Float, Long and Double.
Java Short class provides several useful methods for converting a short to a String and a String to a short, as well as other constants and methods.
java.lang.Short Class Example
java.lang.Short Class Example 2
Following Java Short class example you can learn how to use static methods of Java Short Class. If you use static methods you need not to create the class instance. You can call static methods using the class name as reference.
java.lang.Short Class Example 3