[[‘a’,’d’], [‘d’,’a’,’4’]]的类型是
A: [String.String]
B: [Char, Int]
C: [String]
D: (String, String)
A: [String.String]
B: [Char, Int]
C: [String]
D: (String, String)
举一反三
- String s=new String(“hello”); String t =new String(“hello”); char c [ ] ={‘h’,’e’,’l’,’l’,’o’}; 下列哪些表达式返回true ?
- 如果有以下关于String[][]的程序代码:String[][] strs = new String[2][5];以下描述正确的是( ) A: 产生10个String实例 B: 产生2个String实例 C: 产生0个String实例 D: 编译失败
- 设有如下定义和语句[1] char *s; s="string";[2] char s[7]; s="string";[3] char s[ ]="string";[4] char s[ ]={'s','t','r','i','n','g'};其中定义项可以作为字符串使用的是______。 A: [1]和[2] B: [1]和[3] C: [1]和[4] D: [3]和[4]
- 定义名为“学号”的属性,该属性的类型为“string”,该属性在XML中必须出现,下面正确的选项是( )。 未知类型:{'options': ['[!attribute name="学号" type="string" use="required" /]', '[attribute name="学号" type="string" use="prohibited" /]', '[attribute name="学号" type="string" use="required" /]', '[attribute name="学号" type="string" use="optional" /]'], 'type': 102}
- String s=new String(“hello”);String t =new String(“hello”);char c [ ] ={‘h’,’e’,’l’,’l’,’o’};下列哪些表达式返回true ? A: s.equals(t); B: t.equals(c); C: s= =t ; D: t.equals (new String(“hello”));