正在加载图片...
A long number= 3451 B long number =0345 C. lor D long number =0x345L 36. PAne组件的默认布局管理器是哪一项? 37.下列哪一项不属于面向对象程序设计的基本要素? A.类 对象 C.方法 D.安全 38.下面程序的输出结果是。 for(int cnt=0; cnt<10; cnt++) B.6789 C.012346789 39.给定下面的代码片 1)String str=null 2)if((str I= null)&&(str length(>10))i 3)System. out printIn("more than 10"); 4)} )else if (str I=null)&(str length(<5))i 6)System.out println("less than 5"); 8)else( System.ou 哪些行会导致错误? B line 2 C line D line 8A. long number = 345L; B. long number = 0345; C. long number = 0345L; D. long number = 0x345L. 36. JPanel 组件的默认布局管理器是哪一项? A. GridLayout B. CardLayout C. BorderLayout D. FlowLayour 37. 下列哪一项不属于面向对象程序设计的基本要素? A. 类 B. 对象 C. 方法 D. 安全 38. 下面程序的输出结果是。 public class ex2 { public static void main(String[] args) { for(int cnt=0;cnt<10;cnt++) { if(cnt==5) break; System.out.print(cnt); } } } A. 0 1 2 3 4 B. 6 7 8 9 C. 0 1 2 3 4 6 7 8 9 D. 5 39. 给定下面的代码片段: 1) String str = null; 2) if ((str != null) && (str.length() > 10)) { 3) System.out.println("more than 10"); 4) } 5) else if ((str != null) & (str.length() < 5)) { 6) System.out.println("less than 5"); 7) } 8) else { System.out.println("end"); } 哪些行会导致错误? A line 1 B line 2 C line 5 D line 8
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有