/* Program to illustrate that -1 is represented by another positive integer. Written by: Dan Stearns Date: fall 2001 */ import java.io.*; public class nonegative { public static void main (String args[]) { short a = 5; short b = (short) 65535; short c = (short) (a + b); System.out.println ("c = " + c); } } /* Output c = 4 */