下列值不为true的表达式有( )。
A: "john" = = "john"
B: "john".equals("john")
C: "john" = "john"
D: "john".equals(new String("john"))
A: "john" = = "john"
B: "john".equals("john")
C: "john" = "john"
D: "john".equals(new String("john"))
举一反三
- 通过 SQL,从 “actor” 表中选取 "FirstName" 列的值等于"John" 的所有记录的表述正确的是( )。? SELECT * FROM Actor WHERE FirstName='John'|SELECT * FROM Actor WHERE FirstName LIKE 'John'|SELECT [all] FROM Actor WHERE FirstName='John'|SELECT [all] FROM Actor WHERE FirstName LIKE 'John'
- 2. Which poem below is written by John Donne? A: Illiad B: "To Fortune" C: "Death, Be not Proud" D: "Lycidas"
- 如第一次给对方公司销售部经理John Smith寄信,启首称谓(solutation)可以用---"Dear John,"。 A: 正确 B: 错误
- 定义并初始化一个用于存放我们国家的四个直辖市的数组cityName,四个直辖市为:北京,上海,天津,重庆. 正确的是_________ A: String[] cityName=new String[4]{"北京","上海","天津","重庆"}; B: String[] cityName=new String[]{"北京","上海","天津","重庆"}; C: String[] cityName={"北京","上海","天津","重庆"}; D: String cityName = new String[4] { "北京", "上海", "天津", "重庆" };
- 下列定义字符串数组的语法正确的是( )? A: String[] list = new String[]{"red", "yellow", "green"}; B: String list = new String{"red", "yellow", "green"}; C: String list = {"red", "yellow", "green"}; D: String[] list = {"red", "yellow", "green"};