| Package | Description | 
|---|---|
| java.lang | Provides classes that are fundamental to the design of the Java
 programming language. | 
| javax.management.openmbean | Provides the open data types and Open MBean descriptor classes. | 
| Modifier and Type | Field and Description | 
|---|---|
| static Class<Short> | Short. TYPEThe  Classinstance representing the primitive typeshort. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Short | Short. decode(String nm)Decodes a  Stringinto aShort. | 
| static Short | Short. valueOf(short s)Returns a  Shortinstance representing the specifiedshortvalue. | 
| static Short | Short. valueOf(String s)Returns a  Shortobject holding the
 value given by the specifiedString. | 
| static Short | Short. valueOf(String s,
       int radix)Returns a  Shortobject holding the value
 extracted from the specifiedStringwhen parsed
 with the radix given by the second argument. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | Short. compareTo(Short anotherShort)Compares two  Shortobjects numerically. | 
| Modifier and Type | Field and Description | 
|---|---|
| static SimpleType<Short> | SimpleType. SHORTThe  SimpleTypeinstance describing values whose
 Java class name isjava.lang.Short. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.