单项选择题
class Foo { public static void main(String [] args) { int x = 0; int y = 4; for(int z=0; z 〈 3; z++, x++) { if(x 〉 1 & ++y 〈 10) y++; } System.out.println(y); } } 结果是什么?()
A.6 B.7 C.8 D.10
5. class Order2 implements Runnable { 6. public void r...
5. class Order2 implements Runnable { 6. public void run() { 7. for(int x = 0; x 〈 4; x++) { 8. try { Thread.sleep(100); } catch (Exception e) { } 9. System.out.print("r"); 10. } } 11. public static void main(String [] args) { 12. Thread t = new Thread(new Order2()); 13. t.start(); 14. for(int x = 0; x 〈 4; x++) { 15. // insert code here 16. System.out.print("m"); 17. } } } 哪一个插入到第15行,最有可能产生输出 rmrmrmrm ?()
A.Thread.sleep(1); B.Thread.sleep(100); C.Thread.sleep(1000); D.try { Thread.sleep(100); } catch (Exception e) { }
SwingJFrame类缺省的布局管理器是:()A.FlowLayoutB.GridLayoutC.Borde...
单项选择题Swing JFrame类缺省的布局管理器是:()
A.FlowLayout B.GridLayout C.BorderLayout D.CardLayout
以下关于GUI容器缺省布局管理器的叙述,哪项正确?()A.JPanel容器的缺省布局管理器是FlowLayou...
单项选择题以下关于GUI容器缺省布局管理器的叙述,哪项正确?()
A.JPanel容器的缺省布局管理器是FlowLayout B.JPanel容器的缺省布局管理器是BorderLayout C.JFrame容器的缺省布局管理器是FlowLayout D.JFrame容器的缺省布局管理器是GridLayout