相关考题
-
单项选择题
下列构造String的语句中,不正确的是()。
A.String str2="";
B.String str1=new String();
C.String str4=""+123;
D.String str3=new String(123); -
单项选择题
下列语句序列执行之后,b1,b2,b3,b4的值分别是()。String s1="peace";String s2=new String(s1);String s3=s2;String s4=new String("PEACE");boolean b1=(s1==s2);boolean b2=s1.equals(s2);boolean b3=(s3==s2);boolean b4=s4.equals(s3);
A.true,true,false,false
B.false,true,true,true
C.false,true,true,false
D.false,true,false,false -
单项选择题
Swing的三个顶层容器分别是()。
A.JApplet,JPanel,JWindow
B.JDialog,JApplet,JFrame
C.JApplet,JFrame
D.JMenu
E.JFrame,JPanel,JTextArea
