【单选题】【消耗次数:1】
下面哪个函数是public void method(){ }的重载函数?( )
public void method( int m){ }
public int method(){ }
public void method2(){ }
public int method(int m,float f ){ }
参考答案:
复制
纠错
相关题目
【单选题】 运行下面程序时,会产生什么异常?( ) 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 Increment{ public static void main(String args[]){ int c; c = 2; System.out.println(@@; System.out.println(c++); System.out.println(@@; } }
①  2 2 2
②  2 3 3
③  2 2 3
④  3 4 4
【单选题】 已知有下面类的说明: 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
【单选题】 编译运行以下程序后,关于输出结果的说明正确的是 ( ) public class Conditional{ public static void main(String args[ ]){ int x=4; System.out.println(“value is “+ ((x>4) ? 9.9:9)); } }
①  输出结果为:value is 99.9
②  输出结果为:value is 9
③  输出结果为:value is 9.0
④  编译错误
【单选题】 编译下面源程序会得到哪些文件( )? class A1{ } class A2{ } public class B{ public static void main(String[] args) { } }
①  只有B.class 文件
②  只有 A1.class 和 A2.class 文件
③  编译不成功
④  A1.class、A2.class 和B.class 文件
【单选题】 下列程序的运行结果是( ) 。 public class X5_1_2 extends x{ int ab() { static int aa=10; aa++; System.out.println(aa); } public static void main(String[] args) { X5_1_2 x=new X5_1_2(); x.ab(); } }
①  10
②  11
③  编译错误
④  运行成功,但不输出
【单选题】 Which of the following is not grammar presentation method?
①  Deductive method
②  Inductive method
③  Guided discovery method
④  Communicative teaching method.
【单选题】 int Func(int,int);不可与下列哪个函数构成重载( )
①  int Func(int,int,int);
②  double Func(int,int);
③  double Func(double,double);
④  double Func(int,double);
随机题目
【单选题】 独立基础之内的纵横两方向配筋都是受力钢筋,且长方向的一般布置在()
①  上下随便布置
②  上面
③  下面
④  以上都不对
【多选题】 进场原材料、构配件报验应及时,监理单位可以和( )协商确定进场材料、构配件进场后的报验方法。
①  勘察单位
②  施工单位
③  建设单位
④  材料供应单位
【多选题】 资料员在资料的收集归档方面,应遵循以下原则:( )。
①  参与原则
②  肯定原则
③  同步原则
④  否定原则
【多选题】 建设单位通常也称为( ),指的是建设工程项目的投资主体或投资者。
①  甲方
②  乙方
③  第三方
④  业主
【多选题】 监理资料主要有( )等。
①  监理管理资料
②  监理工作记录
③  竣工验收资料
④  设计图纸
【多选题】 应采用耐久性强的书写材料填写资料,如( )。
①  铅笔
②  复写纸
③  中性笔
④  碳素墨水
【多选题】 《开工报告》中的“审核意见”栏内( )负责人均需签字,注明日期并加盖单位公章。
①  监理单位
②  施工单位
③  设计单位
④  建设单位
【多选题】 对于( )工程档案的行为,应按有关规定予以处罚,情节严重的,应依法追究法律责任。
①  涂改、伪造
②  随意增减
③  损毁
④  丢失
【多选题】 承包单位提交工程施工进度计划报审表后,专业监理工程师应审核建设单位,是否向承包单位提供了( )等施工条件。
①  建设资金
②  施工图纸
③  施工场地
④  采供的物资设备
【多选题】 下面哪些项目是在分项、分部工程中无法测定和不便测定的?( )
①  建筑物的全高
②  垂直度
③  线角是否顺直
④  水泥混凝土的抗压强度