Hi,
I am trying to understand behavior of System.in.read(byte[]) .
In the below code.
CONSOLE:
Ð
1
-48---11111111111111111111111111010000
Ð
Ð----is a character with Unicode value of U+0189 and its 2 byte or 16 bit representation is 0000 0001 1000 1001
Now , output of line2 says that , System.read has read 1 byte from console (std input) ,
Question 1 is which byte of Ð does it read , 0x01 or 0x89 ???
Question 2 is why is it printing -48 in line no 3.
Also i couldn't understand ,HOW String constructed 2 byte information Ð, even though it only read one byte?