int i = 71;
System.out.println(i) // gives 71
System.out.write(i) // gives G
why different output is received? Both are byte streams then why the output is different?
int i = 71;
System.out.println(i) // gives 71
System.out.write(i) // gives G
why different output is received? Both are byte streams then why the output is different?
write(int b) interprets the number as byte. Capital G is byte 71 in the Ascii-Table.