In this example we will show the method to create a short type in Java.
Source Code
package com.beginner.examples;
short type
public class ShortType {
public static void main(String[] args) {
short num = 100; // short
System.out.println(num);
}
}
Output:
100