Javatpoint Logo
Javatpoint Logo

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

Test it Now

Output:

Short 105 converted into intValue is = 105 

Example 2

Test it Now

Output:

Short -55 converted into intValue is = -55

Next TopicJava Short





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA