Assume that the ASCII code for character c is 99 and for a is 97. What is the printout of the following code? System.out.println('a' + 'c');
A. 9799
B. a99
C. ac
D. 196
查看答案
The expression 'c' - 'e' is ________________.
A. a random number
B. invalid
C. 2
D. -2
Will System.out.println((char)4) display 4?
A. No
B. Yes
Which of the following statement prints smith\exam1\test.txt?
A. System.out.println("smith\\exam1\\test.txt");
B. System.out.println("smith\"exam1\"test.txt");
C. System.out.println("smith"\exam1"\test.txt");
D. System.out.println("smith\exam1\test.txt");
You can cast a character value to an int, or an int to char.
A. false
B. true