A.charAt函数的作用是返回一个字符,如charAt(1)返回字符串中的第一个字符
B.在length函数中,一个汉字占两个英文字母的空间,因此长度也要加倍
C.substring函数的作用是返回字符串的一个子串
D.String类和StringBuffer类都有length函数,它们的形式和功能是一致的
E.indexof函数的作用是从前往后搜索字符第一次出现的位置
A.equals()
B.equalsIgnoreCase()
C.regionMatches()
D.compareTo()
下列方法中,不属于类String的方法是()。
A.toLowerCase()
B.valueOf()
C.charAt()
D.append()
A.该方法必须返回IEnumerator或IEnumerable类型
B.该方法必须返回IComparable类型
C.该方法必须明确包含集合
D.该方法必须是类中唯一的迭代器
A、public void main (String args[ ])
B、Static void main (String args[ ])
C、public static void Main (String args[])
D、public static void main (String args[ ])
当浏览器重新返回Applet所在页面时,将调用Applet类的方法是()。
A.start()
B.init()
C.stop()
D.destroy()
假设有以下代码: String s="hello"; String t="hello"; char c[ ]={'h','e','l','l','o'}; 下列选项中,返回false的语句是______。
A.s.equals(t);
B.t.equals(c);
C.s==t;
D.t.equals(new String("hello"));