What is the output of System.out.println('z' - 'a')?
a. 25
b. 26
c. a
d. z
a. 25
The Unicode offset between z and a is 25.
Computer Science & Information Technology
You might also like to view...
Which of the following is one of the ten plain language techniques for policy writing?
A) Use passive voice. B) Include redundant pairs or modifiers. C) Use long sentences. D) Limit a paragraph to one subject.
Computer Science & Information Technology
Write a method called countA that accepts a String parameter and returns the number of times the character 'A' is found in the string.
What will be an ideal response?
Computer Science & Information Technology
Frame animation assigns a sequence of photos to play as in a slide show with a predefined interval between images.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
In the figure above, the number ____ points to the property.
A. 1 B. 2 C. 3 D. 4
Computer Science & Information Technology