Suppose i is an int type variable. Which of the following statements display the character whose Unicode is stored in variable i?

a. System.out.println(i);
b. System.out.println((char)i);
c. System.out.println((int)i);
d. System.out.println(i + " ");

b (char)i casts a number into a character.

Computer Science & Information Technology

You might also like to view...

________ to data is a best practice when the core data are shared among other users or applications

Fill in the blank(s) with correct word

Computer Science & Information Technology

What is the importance of a default route?

What will be an ideal response?

Computer Science & Information Technology