• 2022-06-08 问题

    在Java语言的类库中提供哪个类,所有自己创建的异常对象都必须是它的实例或它的子类的实例 A: fun( ); B: Base.fun( ); C: Base::fun( ); D: Base->fun( );

    在Java语言的类库中提供哪个类,所有自己创建的异常对象都必须是它的实例或它的子类的实例 A: fun( ); B: Base.fun( ); C: Base::fun( ); D: Base->fun( );

  • 2022-06-07 问题

    标准以太网指的是 ( ) A: 10 BASE 5 B: 10 BASE 2 C: 10 BASE T D: 100 BASE T

    标准以太网指的是 ( ) A: 10 BASE 5 B: 10 BASE 2 C: 10 BASE T D: 100 BASE T

  • 2021-04-14 问题

    (6-2)定义如下Base类,能在(1)处正确调用Base的构造方法。 class Base{ int x,y; Base(int x){} Base(int x,int y){ //(1)调用Base的构造方法 } }

    (6-2)定义如下Base类,能在(1)处正确调用Base的构造方法。 class Base{ int x,y; Base(int x){} Base(int x,int y){ //(1)调用Base的构造方法 } }

  • 2021-04-14 问题

    如何能使程序调用Base类的构造方法输出"base constructor"; class Base{ Base(int i){ System.out.println("base constructor"); } Base(){  } } public class Sup extends Base{ public static void main(String argv[]){ Sup s= new Sup(); //One } Sup() { //Two } public void derived() { //Three } }

    如何能使程序调用Base类的构造方法输出"base constructor"; class Base{ Base(int i){ System.out.println("base constructor"); } Base(){  } } public class Sup extends Base{ public static void main(String argv[]){ Sup s= new Sup(); //One } Sup() { //Two } public void derived() { //Three } }

  • 2022-06-06 问题

    给出下面的代码段 public class Base{ int x, y; static int z; public Base(int a,int b)<br/>{ x=a; y=b; } } 以下代码错误的是?(). A: Base b=new Base(); <br/>b.z=10; B: Base b=new Base(1,2); <br/>b.z=10; C: Base.z=10; D: Base b=new Base(1,2);<br/>b.x=2;

    给出下面的代码段 public class Base{ int x, y; static int z; public Base(int a,int b)<br/>{ x=a; y=b; } } 以下代码错误的是?(). A: Base b=new Base(); <br/>b.z=10; B: Base b=new Base(1,2); <br/>b.z=10; C: Base.z=10; D: Base b=new Base(1,2);<br/>b.x=2;

  • 2022-05-30 问题

    下面那个程序代码是正确的_________ A: print("Programming is fun") print("Python is fun") B: print("Programming is fun")print("Python is fun") C: print("Programming is fun)print("Python is fun") D: print("Programming is fun)print("Python is fun")

    下面那个程序代码是正确的_________ A: print("Programming is fun") print("Python is fun") B: print("Programming is fun")print("Python is fun") C: print("Programming is fun)print("Python is fun") D: print("Programming is fun)print("Python is fun")

  • 2022-06-03 问题

    _______it is to listen to music! A: What fun B: How a fun C: What a fun D: How fun

    _______it is to listen to music! A: What fun B: How a fun C: What a fun D: How fun

  • 2022-06-07 问题

    At tea-time the family had () A: no fun B: a little fun C: little fun D: a lot of fun

    At tea-time the family had () A: no fun B: a little fun C: little fun D: a lot of fun

  • 2021-04-14 问题

    (6-2)以下代码会出现编译错误。 class Base{ public Base () { System.out.println("1"); } public void Base () { System.out.println("2"); } }

    (6-2)以下代码会出现编译错误。 class Base{ public Base () { System.out.println("1"); } public void Base () { System.out.println("2"); } }

  • 2022-06-09 问题

    已定义下面的fun函数,则( )是对fun函数的正确调用。void fun(int x) { ....... } A: fun(3); B: fun(); C: z=fun(3); D: 6*fun(3);

    已定义下面的fun函数,则( )是对fun函数的正确调用。void fun(int x) { ....... } A: fun(3); B: fun(); C: z=fun(3); D: 6*fun(3);

  • 1 2 3 4 5 6 7 8 9 10