VOOZH about

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

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


  • Courses
  • Tutorials
  • Interview Prep

Byte shortValue() method in Java with examples

Last Updated : 11 Jul, 2025
The shortValue() method of Byte class is a built in method in Java which is used to return the value of this Byte object as short. Syntax
ByteObject.shortValue()
Return Value: It returns the value of ByteObject as short. Below is the implementation of shortValue() method in Java: Example 1:
Output:
Short value of 17 is : 17
Example 2:
Output:
Short value of 17 is : 17
Comment