下列哪些表达式返回的是true()。
A: "john"=="john"
B: "john".equals("john")
C: "john"="john"
D: "john".equals(newButton("john"))
A: "john"=="john"
B: "john".equals("john")
C: "john"="john"
D: "john".equals(newButton("john"))
举一反三
- 【单选题】下列值不为 true 的表达式有 A. "john" = = "john" B. "john".equals("john") C. "john" = "john" D. "john".equals(new String("john"))
- 在java语言中,下列表达式返回true的是( )。 A: ”hello”==” hello” B: ”word”.equals(”word”) C: ,,john ,,= ,,john ” D: "john".equals(new Button("john"))
- In the late 17th century, the most famous writers were ______. A: John Bunyan and John Milton B: John Bunyan and John Donne C: John Donne and John Milton D: John Donne and Francis Bacon
- Paradise Lost was written by A: John Milton. B: John Donne. C: John Dryden. D: John Bunyan.
- 2. ____________known the truth?A. Might John( )B. May John have( )C. Could John have( )D. Can John. A: Could John have B: Might John C: May John have D: Can John