Unicode System is universal international standard character encoding.Unicode system makes it easy to represent all written languages in this world.
Why Java uses Unicode System?
Different coding systems that were used earlier before Unicode System caused several problems,i.e
1.A certain code value represented different letters in different standards.
2.Different variable lengths while be encoded into single bytes, and other will require multiple bytes.
Different standards that have been used before Unicode System are:-
- ASCII (American Standard Code for Information Interchange) for the United States.
- ISO 8859-1 for Western European Language.
- KOI-8 for Russian.
- GB18030 and BIG-5 for Chinese.
Unicode System solved this problem.
A character holds 2 bytes in Unicode.Hence Java uses two bytes for a character.i.e lowest value:u0000 and highest value:uFFFF