Taufique Sekh
Why Java take 2 byte of memory for store character ?
By Taufique Sekh in Java on Sep 20 2015
  • Mukesh Kumar
    Sep, 2017 2

    Because it is based on Unicode

    • 0
  • Munesh Sharma
    May, 2016 4

    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.

    • 0
  • Taufique Sekh
    Sep, 2015 20

    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.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS