public class SampleConversion { public static void main(String[]args) { int intVar = 1000; byte byteVar = (byte)intVar; char charVar = (char)intVar; System.out.println("byte: " + byteVar); System.out.println("int: " + intVar); System.out.println("char: " + charVar); } }