Mega Code Archive

 
Categories / Java Tutorial / Data Type
 

Java short

public class Main {   public static void main(String[] args) {     short s1 = 50;     short s2 = 42;     System.out.println("Value of short variable b1 is :" + s1);     System.out.println("Value of short variable b1 is :" + s2);   } } /* Value of short variable b1 is :50 Value of short variable b1 is :42 */