Java OCA OCP Practice Question 930

Question

Which of the following are legal?

  • A. char c = 0x1234;
  • B. char c = \u1234;
  • C. char c = '\u1234';


C.

Note

A Unicode literal character must be enclosed in single quotes and must begin with \u.




PreviousNext

Related