Home » Java Short doubleValue() method with Examples

Java Short doubleValue() method with Examples

by Online Tutorials Library

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

You may also like