Practice mode Java

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

Correct answer B. 16 bits

Explanation

Java's char is a 16-bit unsigned type that holds a UTF-16 code unit, unlike the 8-bit char used in C.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.