java - why does system.out.write convert int value to char? -


suppose int b = 99. why system.out.write(b) print "c" instead of 99? @ same time using printwriter actual value of b (99) if b = 'c'?

the thing system.out.write(int) consider argument byte , write stream.

in case since passed 99 u0063, hence c printed.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -