Home » Java Short intValue() method with Examples

Java Short intValue() method with Examples

by Online Tutorials Library

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

You may also like