Question: 1 character is how many bytes in java?
Answer: A char represents a character in Java (*). It is 2 bytes large (at least that's what the valid value range suggests). That doesn't necessarily mean that every representation of a character is 2 bytes long. In fact many encodings only reserve 1 byte for every character (or use 1 byte for the most common characters).