Getting started

In this java tutorial, You will learn how to use toString(short s) method of Short class. This method, Returns a new String object representing the specified short. The radix is assumed to be 10.
In this java tutorial, You will learn how to use valueOf(short s) method of Short class. This method, Returns a Short instance representing the specified short value. If a new Short instance is not required, this method should generally be used in preference to the constructor Short(short), as this method is likely to yield significantly better space and time performance by caching frequently requested values. This method will always cache values in the range -128 to 127, inclusive, and may cache other values outside of this range.
In this java tutorial, You will learn how to use valueOf(String s) method of Short class. This method, Returns a Short object holding the value given by the specified String. The argument is interpreted as representing a signed decimal short, exactly as if the argument were given to the parseShort(java.lang.String) method. The result is a Short object that represents the short value specified by the string.
In this java tutorial, You will learn how to use valueOf(String s, int radix) method of Short class. This method, Returns a Short object holding the value extracted from the specified String when parsed with the radix given by the second argument. The first argument is interpreted as representing a signed short in the radix specified by the second argument, exactly as if the argument were given to the parseShort(java.lang.String, int) method. The result is a Short object that represents the short value specified by the string.
In this java tutorial, You will learn how to use hashCode() method of Short class. This method is use to returns a hash code for this Short; equal to the result of invoking intValue(). This method returns a hash code value for this Short.
In this java tutorial, You will learn how to use floatValue() method of Short class. This method is use to returns the value of this Short as a float. This method returns the numeric value represented by this object after conversion to type float.
In this java tutorial, You will learn how to use equals(Object obj) method of Short class. This method compares this object to the specified object. The result is true if and only if the argument is not null and is a Short object that contains the same short value as this object. This method returns true if the objects are the same, false otherwise.
In this java tutorial, You will learn how to use doubleValue() method of Short class. This method returns the value of this Short as a double. This method returns the numeric value represented by this object after conversion to type double.
In this java tutorial, You will learn how to use compareTo(Short anotherShort) method of Short class. This method compares two Short objects numerically. This method returns the value 0 if this Short is equal to the argument Short; a value less than 0 if this Short is numerically less than the argument Short; and a value greater than 0 if this Short is numerically greater than the argument Short (signed comparison).
In this java tutorial, You will learn how to use valueOf compare(short x, short y)method of Short class. This method compares two short values numerically. This method returns the value 0 if x == y; a value less than 0 if x < y; and a value greater than 0 if x > y.