class Abc { public static void main(String args[] ) throws Exception { try{ short s = 24000; byte b = (byte) s; System.out.println(b); } catch(Exception e){ System.out.println("Bad Conversion!"); e.printStackTrace(); } } }
short
byte
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)