public class Main { public static void main(String[] args) { System.out.println("The size of short is " + Short.SIZE / 8 + " bytes."); System.out.println("The size of int is " + Integer.SIZE / 8 + " bytes."); System.out.println("The size of long is " + Long.SIZE / 8 + " bytes."); System.out.println("The size of long long is " + Long.SIZE / 8 + " bytes."); } }