【单选题】【消耗次数:1】
MAX_LENGTH 是int 型public 成员变量,变量值保持为常量1,用简短语句定义这个变量。( )
public int MAX_LENGTH=1;
final int MAX_LENGTH=1;
final public int MAX_LENGTH=1;
public final int MAX_LENGTH=1.
参考答案:
复制
纠错
相关题目
【判断题】 int intArray[]={0,2,4,6,8}; int length=int Array.length();
①  正确
②  错误
【判断题】 String str=abcedf; int length=str.length;
①  正确
②  错误
【单选题】 运行下面程序时,会产生什么异常?( ) public class X7_1_4 { public static void main(String[] args) { int x = 0; int y = 5/x; int[] z = { 1,2,3,4 } ; int p = z[4]; } }
①  ArithmeticException
②  NumberFormatException
③  ArrayIndexOutOfBoundsException
④  IOException
【单选题】 运行下面程序时,会产生什么异常?( ) public class X7_1_5 { public static void main(String[] args) { int[] z = { 1,2,3,4 } ; int p = z[4]; int x = 0; int y = 5/x; } }
①  ArithmeticException
②  NumberFormatException
③  ArrayIndexOutOfBoundsException
④  IOException
【单选题】 给出下面代码段, 哪行将引起一个编译时错误?( ) 1) public class Test { 2) int n = 0; 3) int m = 0; 4) public Test(int a) { m=a; } 5) public static void main(String arg[]) { 6) Test t1,t2; 7) int j,k; 8) j=3; k=5; 9) t1=new Test(); 10) t2=new Test(k); 11) } 12) }
①  行1
②  行4
③  行6
④  行9
【单选题】 已知有下面类的说明: public class X5_1_1 extends x{ private float f =10.6f; int i=16; static int si=10; public static void main(String[] args) { X5_1_1 x=new } } X5_1_1(); 在 main()方法中,下面哪条语句的用法是正确的?( )
①  x.f
②  this.si
③  X5_1_1.i
④  X5_1_1.f
【单选题】 设存在函数int max(int,int)返回两参数中较大值,若求22,59,70三者中最大值,下列表达式不正确的是( )
①  int m = max(22,max(59,70));
②  int m = max(max(22,59),70);
③  int m = max(22,59,70);
④  int m = max(59,max(22,70));
【单选题】 设存在函数int max(int,int)返回两参数中较大值,若求22,59,70三者中最大值,下列表达式不正确的是( )
①  int m = max(22,max(59,70));
②  int m = max(max(22,59),70);
③  int m = max(22,59,70);
④  int m = max(59,max(22,70));
【判断题】 已知:int *p1, *p2= 由此可知变量a的类型是:int *。
①  正确
②  错误
【单选题】 设存在函数int max(int,int)返回两参数中较大值,若求22,59,70三者中最大值,下列表达式不正确的是()
①  intm=max(22,max(59,70));
②  intm=max(max(22,59),70);
③  intm=max(22,59,70);
④  intm=max(59,max(22,70));
随机题目
【判断题】 LED显示器有共阳极和共阴极之分。
①  正确
②  错误
【判断题】 两台微机间进行串行通信时,波特率应设置为相同。
①  正确
②  错误
【单选题】 某住宅小区建设中,承包商针对其中一栋住宅楼施工所编制的施工组织设计,属于
①  施工组织设计
②  单位工程施工组织设计
③  单项工程施工组织设计
④  分部工程施工组织设计
【单选题】 以一个建筑物作为组织施工对象而编制的技术、经济文件称
①  施工组织总设计
②  单位工程施工组织设计
③  分部工程施工设计
【单选题】 技术资料准备的内容不包括
①  图纸会审
②  施工预算
③  制定测量、放线方案
【单选题】 网络计划的关键线路
①  只有一条
②  不会超过五条
③  可能有多条
④  非关键线路间不可能成为关键线路
【单选题】 一般情况下,横道图能反映出工作的
①  总时差
②  最迟开始时间
③  持续时间
④  自由时差
【单选题】 “三通一平”通常不包括
①  电通
②  话通
③  路通
【单选题】 流水施工的实质就是
①  提高劳动生产率
②  加快施工进度
③  连续、均衡生产
【单选题】 关于虚工作的说法,正确的是
①  虚工作只在双代号网络计划中存在
②  虚工作一般不消耗资源但占用时间
③  虚工作可以正确表达工作间逻辑关系
④  双代号时标网络计划中虚工作用波形表示