【单选题】【消耗次数: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));
随机题目
【单选题】 在园林植物上,有5类小型吸汁害虫是防治的重点,统称“园林五小”,他们是
①  蚧壳虫、蚜虫、木虱、粉虱、叶蝉
②  蚧壳虫、蚜虫、木虱、叶蝉、蓟马
③  蚧壳虫、蚜虫、叶蝉、蓟马、螨类
④  蚧壳虫、蚜虫、粉虱、叶蝉、螨类
【单选题】 同翅目昆虫的口器类型为
①  刺吸式
②  虹吸式
③  舐吸式
④  嚼吸式
【单选题】 利用性外激素防治害虫,只有在害虫的什么时期有效
① 
②  幼虫
③ 
④  成虫
【单选题】 下列昆虫中,哪个是寄生性天敌
①  瓢虫
②  螳螂
③  赤眼蜂
④  蜻蜓
【单选题】 应用性引诱剂诱杀害虫是利用昆虫的
①  群集性
②  假死性
③  趋光性
④  趋化性
【单选题】 林木根癌病病原菌()。
①  菌物
②  细菌
③  病毒
④  线虫
【单选题】 鞭毛菌亚门的真菌无性繁殖产生()
①  分生孢子
②  卵孢子
③  游动孢子
④  子囊孢子
【单选题】 对四环素敏感的病原是()。
①  病毒
②  植原体
③  细菌
④  真菌
【单选题】 桃缩叶病是有()引起。
①  镰刀菌
②  丝核菌
③  外子囊菌
④  外担子菌
【单选题】 下列哪种病害是检疫性病害?()
①  松疱锈病
②  松瘤锈病
③  松针褐斑病
④  松针锈病