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...

Authentication server scripts more secure than workstation login scripts because ________.

a) a single login allows a user access to multiple applications b) user passwords are encrypted to hide them from other users c) passwords are maintained in only one (typically secure) location d) none of the above

Computer Science & Information Technology

When the View Side by Side button is active, which of the following does NOT allow you to move between two workbooks?

A) Use the buttons on the task bar B) Pressing the Alt + Tab keys C) Use the Switch Windows button in the Window group D) Clicking on the upper or lower part of the window

Computer Science & Information Technology

In the linked priority queue, what is the time and space analysis for the add method?

A. O(n2) B. exponential C. logarithmic D. O(n)

Computer Science & Information Technology

Because even the implementation of new technologies does not necessarily guarantee an organization can gain or maintain a competitive lead, the concept of __________ has emerged as organizations strive not to fall behind technologically.

A. competitive disadvantage B. future shock C. competitive advantage D. innovation hedge

Computer Science & Information Technology