The toShort() method is utilized to convert the specified int number into a short type value.
Method Definition: (Number).toShort
Return Type: It returns the converted short datatype value.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.