हिंदी

How many bytes a char data type occupies in the memory? - Computer Applications

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1.03: Values and Data Types - EXERCISES [पृष्ठ ३२]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 1.03 Values and Data Types
EXERCISES | Q I. 1. | पृष्ठ ३२
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×