Javatpoint Logo
Javatpoint Logo

Java Short doubleValue() Method

The doubleValue() method of Java Short class will return the value of this Short object as a double.

Syntax

Parameters

N/A

Return value

The doubleValue()method returns numeric double value corresponding to this Short object

Example 1: (With Positive Value)

Test it Now

Output:

Returned double Value of Short object is  = 500.0 

Example 2: (With Negative Value)

Test it Now

Output:

Returned double Value of Short object is  = -200.0

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