fork download
  1. class Test {
  2. public static void main(String[] args) throws Exception {
  3. byte a = (byte)1, b = (byte)2;
  4. byte c = a+b;
  5. System.out.println(c);
  6. }
  7. }
  8.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:4: error: incompatible types: possible lossy conversion from int to byte
		byte c = a+b;
		          ^
1 error
stdout
Standard output is empty