Datatypes are used to identify the type of data or which allocates the sufficient memory space for the varables. These Datatypes are classified into following types:
Primitive datatypes are used to store the single value at a time
int y=12,13;(invalid) These Primitive datatypes are classified into following types
Floating point datatype
In C-language character datatype occupies one byte of memory because it supports ASCII code(American Standard for Information Interchange ).It contains 256 characters only.So character datatype occupies
one byte of memory.
In java language character datatype occupies two byte of memory because it supports UNI Code(Universal Coding System).It contains 18 international languages.each language contains
their own alphabets and symbols and characters.Each characters contains one unique value.So java language character datatype occupies 2 bytes of memory