易搜题 > 资格证大类 > 计算机编程 > 问题详情
问题详情

35. String #name = “Jane Doe”;  36. int$age=24;  37. Double_height = 123.5;  38. double~temp = 37.5;  Which two are true?()

A

 Line 35 will not compile.

B

 Line 36 will not compile.

C

 Line 37 will not compile.

D

 Line 38 will not compile.

未找到的试题在搜索页框底部可快速提交,在会员中心"提交的题"查看可解决状态。 收藏该题
查看答案

相关问题推荐

  • What is the result?()

    A、 r, t, t,

    B、 r, e, o,

    C、 Compilation fails.

    D、 An exception is thrown at runtime.

  • class One {  public One() { System.out.print(1); }  }  class Two extends One {  public Two() { System.out.print(2); }  }  class Three extends Two {  public Three() { System.out.print(3); }  }  public class Numbers{  public static void main( String[] argv) { new Three(); }  }  What is the result when this code is executed?() 

    A、 1

    B、 3

    C、 123

    D、 321

    E、 The code rims with no output.

  • int I=1, j=0   switch(i) {   case 2:   j+=6;   case 4:   j+=1;    default:    j +=2;   case 0:   j +=4;   }   What is the value of j at line 16?()

    A

     0

    B

     1

    C

     2

    D

     4

    E

     6

  • class BaseClass{  private float x= 1.0f;  protected void setVar (float f) {x = f;}  } class SubClass extends BaseClass   {  private float x = 2.0f;  //insert code here 16. }   Which two are valid examples of method overriding?()     

    A

     Void setVar(float f) {x = f;}

    B

     Public void setVar(int f) {x = f;}

    C

     Public void setVar(float f) {x = f;}

    D

     Public double setVar(float f) {x = f;}

    E

     Public final void setVar(float f) {x = f;}

    F

     Protected float setVar() {x=3.0f; return 3.0f; }

  • What is the result?()

    A、 end

    B、 Compilation fails.

    C、 exception end

    D、 exception test end

    E、 A Throwable is thrown by main.

    F、 An Exception is thrown by main.

联系客服 会员中心
TOP