Online Java Compiler By
JavaTpoint.com
public class ShortIntValueExample1 { public static void main(String[] args) { Short sValue = 105; //with positive value // it returns int type value int result = sValue.intValue(); System.out.println(" Short "+sValue+" converted into intValue is = " + result); } }
Output