70
Java Short intValue() Method
The intValue() method of Short class is used to return int value corresponding to Short object.
Syntax
Parameters
N/A
Return value
Returns numeric value corresponding to Short value after converting it into int type.
Example 1
Output:
Short 105 converted into intValue is = 105
Example 2
Output:
Short -55 converted into intValue is = -55
Next TopicJava Short