1. Home
  2. Computer Science MCQs
  3. JAVA
  4. What is the size of the char data type in Java?

Added 2 Nov 2026

What is the size of the char data type in Java?

  1. 16 bits Correct answer
  2. 32 bits
  3. 4 bits
  4. 8 bits

Correct answer

A. 16 bits

19 views

MCQSEXAM

Explanation

A Java char is 16 bits, because it stores a UTF-16 code unit. That lets it hold far more characters than an 8-bit C char.

Reference

Asked in: NTS, PPSC, OCA Java

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More JAVA MCQs

Practise all JAVA MCQs

Similar MCQs