题目内容

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

Is 'a' larger than 'A'?

A. Yes
B. No

To check whether a char variable ch is an uppercase letter, you write ___________.

A. (ch >= 'A' || ch <= 'Z')
B. (ch >= 'A' && ch >= 'Z')
C. ('A' <= ch <= 'Z')
D. (ch >= 'A' && ch <= 'Z')

Which of the following is not a correct method in the Character class?

A. isLetterOrDigit(char)
B. isLetter(char)
C. toUpperCase()
D. toLowerCase(char)

答案查题题库