【单选题】【消耗次数:1】
下面哪个函数是public void method(){ }的重载函数?( )
public void method( int m){ }
public int method(){ }
public void method2(){ }
public int method(int m,float f ){ }
参考答案:
复制
纠错
➡️如需代学继续教育,联系微信:yizhituziang

相关题目
【单选题】 运行下面程序时,会产生什么异常?( ) 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
【单选题】 运行下面程序时,会产生什么异常?( ) 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
【单选题】 给出下面代码段, 哪行将引起一个编译时错误?( ) 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
【单选题】 M类中有一个没有形式参数,且没有返回值的方法method,若要使得用M.method()就可以调用该方法,则method方法的方法头的正确形式应该是( )(50分)
①  static void method()
②  public method()
③  final void method()
④  static method()
【单选题】 以下程序的运行结果是:( ) 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.
随机题目
【单选题】 治疗梅毒的首选抗生素是:
①  红霉素
②  青霉素
③  氯霉素
④  四环素
⑤  庆大霉素
【单选题】 最适合采集支原体的拭子类型是:
①  聚酯纤维
②  涤纶
③  人造丝头
④  棉拭子
⑤  藻酸钙拭子
【单选题】 用于HIV血清学检测确证试验的方法是:
①  ELISA
②  CLIA
③  westernblot
④  免疫层析
⑤  PCR
【单选题】 下面()细菌可引起罕见的关节炎
①  布鲁菌属
②  沙门菌属
③  分枝杆菌属
④  军团菌属
⑤  以上都是
【单选题】 骨与关节感染中最常见的病原菌:
①  肺炎链球菌
②  流感嗜血杆菌
③  铜绿假单胞菌
④  金黄色葡萄球菌
⑤  淋病奈瑟菌
【单选题】 用于真菌培养的组织或骨标本,除了研磨后接种标准培养基外,点种一小块完整的组织到每块琼脂培养基里面。怀疑菌感染时,标本不宜研磨,宜剪成小块
①  念珠菌
②  曲霉菌
③  接合菌
④  青霉
⑤  赛多孢
【单选题】 金黄葡萄球菌培养方法与PCR方法比较,会漏检()以上的定植
①  1/10
②  1/8
③  1/5
④  1/3
⑤  1/2
【单选题】 据文献报道金黄葡萄球菌筛查+去定植,可降低()%术后金葡感染
①  20
②  30
③  50
④  60
⑤  80
【单选题】 皮肤及软组织感染中,引起毛囊炎最常见的病原菌是:
①  化脓性链球菌
②  海鱼弧菌
③  金黄色葡萄球菌
④  分枝杆菌属
⑤  丹毒丝菌属
【单选题】 着色性真菌病(酿母菌病,疣状皮炎)的病因体不包括
①  疣状瓶霉
②  风疹病毒
③  裴氏着色霉
④  紧密着色霉
⑤  卡氏枝孢霉