Question 62

Computer Awareness Organization of a computer Medium

Which of the following codes is used in Java to represent characters?

(A) ASCII code
(B) Unicode
(C) Byte code
(D) None of the above
View Dynamic Solution & Explanation
Correct Solution: Option B

Step-by-step Solution:

1. ASCII Code: ASCII is a character encoding standard that represents characters with 7 bits, but it is limited to 128 characters. Java does not only rely on ASCII to represent characters. \[\] 2. Unicode: Java uses Unicode to represent characters. Unicode is a universal character encoding standard that can represent characters from multiple languages and symbol sets, allowing Java to handle internationalization seamlessly. \[\] 3. Byte Code: Byte Code is not used for representing characters. It refers to the intermediate code that Java is compiled into and executed by the Java Virtual Machine (JVM). \[\] 4. None of the Above: This option would only be correct if none of the other answers applied, which is incorrect because Java uses Unicode. \[\] \[\] Correct Answer: (b)