Which of the following codes is used in Java to represent characters?
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)
Reinforce your conceptual grasp with related questions from CUET-MCA 2021:
Take timed full-length mock tests with authentic question distributions, negative marking (+12/-3 in Math), and instant All India Rank calculation.
Start Free Mock Test Series →