Java Tutorial

What is Java


Control Statements


Java Object Class


Java Inheritance


Java Polymorphism


Java Abstraction


Java Encapsulation


Java Array

Java OOPs Misc


Unicode System

Unicode is a universal international standard character encoding that is capable of representing most of the world's written languages.

Why java uses Unicode System?

Before Unicode, there were many language standards:

  1. ASCII (American Standard Code for Information Interchange) for the United States.
  2. ISO 8859-1for Western European Language.
  3. KOI-8 for russian
  4. GB18030 and BIG-5 for chinese, and so on

Problem

This caused two problems:

  • This caused two problem
    1. A particular code value corresponds to different letters in the various language standards.
    2. The encodings for languages with large character sets have variable length.Some common characters are encoded as single bytes, other require two or more byte.

    Solution

    To solve these problems, a new language standard was developed i.e. Unicode System.
    In unicode, character holds 2 byte, so java also uses 2 byte for characters.

    lowest value:\u0000

    heighest value:\uFFFF

    Copyright 2017 Design& Development