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