6
Reply

Why Java take 2 byte of memory for store character ?

Taufique Sekh

Taufique Sekh

Sep 20, 2015
2.5k
0

    Because of Unicode character

    Mukesh Kumar
    October 14, 2017
    0

    java follows unicode strings

    Mukesh Kumar
    September 03, 2017
    0

    Because it is based on Unicode

    Mukesh Kumar
    September 02, 2017
    0

    because it uses unicodes

    Mukesh Kumar
    August 23, 2017
    0

    The Java char datatype is 16 bit, byte is 8 bit.This is because Java Strings are unicode Strings, not ASCII ones allowing standard Java Strings to be used in most languages worldwide.

    Munesh Sharma
    May 04, 2016
    0

    Java support more than 18 international languages so java take 2 byte for characters, because for 18 international language 1 byte of memory is not sufficient for storing all characters and symbols present in 18 languages. Java supports Unicode but c support ascii code. In ascii code only English language are present, so for storing all English latter and symbols 1 byte is sufficient.

    Taufique Sekh
    September 20, 2015
    0