VOOZH about

URL: https://www.geeksforgeeks.org/java/double-shortvalue-method-in-java-with-examples/

⇱ Double shortValue() method in Java with examples - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Double shortValue() method in Java with examples

Last Updated : 11 Jul, 2025

The shortValue() method of Double class is a built in method to return the value specified by the calling object as short after type casting.
Syntax
 

DoubleObject.shortValue()


Return Value: It return the value of DoubleObject as short.
Below programs illustrate shortValue() method in Java: 
Program 1:
 


Output: 
Short value of 17.47 is : 17

 

Program 2:
 


Output: 
Short value of 54.1 is : 54

 
Comment