Check out example codes for "short java". It will help you in understanding the concepts better.

Code Example 1

short numberMin = -32768;
short numberMax = 32767;

Code Example 2

// An int is a primitive data type.
// It is defined as followed:
int name = 5;
// The 5 is the number name holds.
// You can see an int as a box called (in this case) name and inside the box is the number 5.

Learn ReactJs, React Native from akashmittal.com