题目内容

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("AB" + 'a' + 'c');

ABac
B. ABa99
C. AB9799
D. AB196

查看答案
更多问题

The expression "Java" + 1 + 2 + 3 evaluates to ________.

A. Illegal expression
B. java 123
C. Java6
D. Java123

"ab".compareTo("aB") is _________.

A. less than 0
B. greater than 0
C. equal to 0
D. less than or equal to 0

Suppose s1 and s2 are two strings. What is the result of the following code? s1.equals(s2) == s2.equals(s1)

A. false
B. true

Which of the following is the correct statement to return JAVA?

A. String.toUpperCase("Java")
B. "Java".toUpperCase("Java")
C. toUpperCase("Java")
D. "Java".toUpperCase()

答案查题题库