Mega Code Archive
Categories
/
Java Tutorial
/
Data Type
Cast result of plus opertion to byte
public class Main { public static void main(String[] args) { short a, b, c; c = 2; byte s; s = (byte) c; System.out.println("s is " + s); } }