【单选题】【消耗次数: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);
随机题目
【判断题】 丙二酸的酸性比乙二酸的酸性强。
①  正确
②  错误
【单选题】 比较下列酯类水解的活性大小:① 对硝基苯甲酸甲酯②对甲氧基苯甲酸甲酯③苯甲酸甲酯④对氯苯甲酸甲酯
①  ①③④
②  ①③②
③  ①②④
④  ③①②
【单选题】 下列化合物哪个属于即属于Lewis碱又是亲电试剂( )
①  H2C=CH2
②  H3O+
③  ZnCl2
④  CH3CH2OH
【单选题】 通常有机物分子中发生化学反应的主要结构部位是:
①  官能团(功能基)
②  所有碳原子
③  氢键
④ 
【单选题】 下列化合物最容易与HCN发生反应生成α-羟基腈的是:
①  三氯乙醛;
②  丁酮;
③  二苯甲酮;
④  苯甲酮
【单选题】 根据当代的观点,有机物应该是:
①  来自动植物的化合物
②  来自于自然界的化合物
③  人工合成的化合物
④  含碳的化合物
【判断题】 钢材经淬火后,强度和硬度提高,塑性和韧性也提高。
①  正确
②  错误
【判断题】 气硬性胶凝材料与水硬性胶凝材料在使用环境上没有区别。
①  正确
②  错误
【单选题】 按照组成物质的种类及化学成分,将材料分为有机材料、无机材料和( )。
①  功能材料
②  人工材料
③  复合材料
④  承重结构材料
【单选题】 烧结普通砖有( )个强度等级。
①  3
②  4
③  5
④  6