Create Short from short value


public class Main {
  public static void main(String[] argv) throws Exception {
    
    Short refShort = new Short((short) 123);
    short s = refShort.shortValue();
  }
}
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