In all the low level languages size of char is 1 byte . So why java support 2 byte size for char type.. It might be easy but I'm very new in java that's why I request you guys to support .
Thanks
In all the low level languages size of char is 1 byte . So why java support 2 byte size for char type.. It might be easy but I'm very new in java that's why I request you guys to support .
Thanks
In Java 'char' type represents an UNICODE character which is two bytes long
char is a data structure that is 16 bits. Thus 2 bytes (8-bits each) is 16 bits.