Why char type in java is is having 2 byte of memory?
Bhavesh Sangwan
Ranch Hand
Joined: Aug 08, 2012
Posts: 42
posted
0
I mean prior to java, all programming languages were using only 1 byte of memory for CHAR datatype. Then why java offered 2 bytes..?
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35241
7
posted
1
Prior to Java, no programming language supported Unicode easily; Java does, thus allowing you to handle text in most of this planet's languages and scripts without much work on your part. Pretty cool, huh?