当Frame改变大小时,放在其中的按钮大小不变,则使用如下哪个layout()。
A、FlowLayout
B、CardLayout
C、North and South of BorderLayout
D、East and West of BorderLayout
第2题
下面哪些选项是正确的main方法说明? ( )
A、public main(String args[])
B、public static void main(String args[])
C、private static void main(String args[])
D、void main()
第3题
指出下列程序的运行结果 int i = 9; switch (i) { default: System.out.println("default"); case 0: System.out.println("zero"); break; case 1: System.out.println("one"); case 2: System.out.println("two");
A、default
B、default, zero
C、error default clause not defined
D、no output displayed那个
第4题
给出下面代码段 1) public class Test { 2) int m, n; 3) public Test() {} 4) public Test(int a) { m=a; } 5) public static void main(String arg[]) { 6) Test t1,t2; 7) int j,k; 8) j=0; k=0; 9) t1=new Test(); 10) t2=new Test(j,k); 11) } 12) }哪行将引起一个编译时错误? ()。。
A、line 3
B、line 5
C、line 6
D、line 10
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!