Java Short Primitive Data Type With Program Example
Java Short Primitive Data Type With Program Example
In Java, short is a primitive data type that can hold 16-bit data size. It ranges from –32,768 to 32,767. It is a useful data type for saving memory in large arrays. Its default value is 0. Syntax: short variableName = 2; Printing short data type Short is signed type that can support positive and negative values, ranging from -215 to 215-1. Lets see a code to simply print short type. public class…
View On WordPress















