Advertisements
Advertisements
प्रश्न
How many bytes a char data type occupies in the memory?
पर्याय
2
8
4
16
MCQ
उत्तर
2
Explanation:
In Java, the char data type takes up two bytes (16 bits) in memory. Java's char encoding is UTF-16, allowing it to represent Unicode characters.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?