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

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -