[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fWM_UeTYnE1s_uAkP2wMyaImofJXFBt4--ZPEHzZlcOk":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":30,"type":31},[],"2024-10-09 20:32:32",161085129,[8,9,10,11],"int sumValue(int a, int b){return a+b;} int sumValue(int a, int b){return a;}","int sumValue(int a, int b) {return a+b;} float sumValue(int a, int b){return (float)(a+b);}","int sumValue(int a, int b){return{ a+b;} float sumValue(float a, float b){return a+b;}","int sumValue(int a, int b){return a+b;} int sumValue(int x, int y){return x+y;}",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},40,"48ab0c8bfb0d56a3a0cb64b624bd126a","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002Fbed85c417655648574c35408641f7c45.jpg","Java面向对象编程技术","work_37480191","第4章类与对象作业","下述( )方法是方法重载的正确写法",[21,32,41,50,55,60,69,72,81,90],{"answer":22,"createTime":5,"id":23,"options":24,"question":29,"source":30,"type":31},[],161085123,[25,26,27,28],"构造方法名必须与类同名","构造方法不具有任何返回类型","任何一个类都含有构造方法","构造方法的访问控制修饰符只能是public","下列哪一项不是构造方法的特点?( )","v1",0,{"answer":33,"createTime":5,"id":34,"options":35,"question":40,"source":30,"type":31},[],161085124,[36,37,38,39],"类定义时","创建对象时","调用对象方法时","使用对象的变量时","在以下什么情况下,构造方法会被调用?( )",{"answer":42,"createTime":5,"id":43,"options":44,"question":49,"source":30,"type":31},[],161085125,[45,46,47,48],"0","null","No existing","编译出错","以下程序的运行结果为( ). class Testnull01 { int num; public static void main(String[] args) { Testnull01 x=new Testnull01(); if(x==null) System.out.println(&quot;No existing &quot;); else System.out.println(x.num); } }",{"answer":51,"createTime":5,"id":52,"options":53,"question":54,"source":30,"type":31},[],161085126,[45,46,47,48],"以下程序的运行结果为( ). class Testnull02 { int num; public static void main(String[] args) { Testnull02 x; if(x==null) System.out.println(&quot;No existing &quot;); else System.out.println(x.num); } }",{"answer":56,"createTime":5,"id":57,"options":58,"question":59,"source":30,"type":31},[],161085127,[45,46,47,48],"以下程序的运行结果为( ). class Testnull03 { int num; public static void main(String[] args) { Testnull03 x=null; if(x==null) System.out.println(&quot;No existing &quot;); else System.out.println(x.num); } }",{"answer":61,"createTime":5,"id":62,"options":63,"question":68,"source":30,"type":31},[],161085128,[64,65,66,67],"UserInfo(user Name, user Number)","this(user Name, user Number)","UserInfo(userName)","this(userName)","以下空白处应填写的代码应该是( ). class UserInfo {String userName; int userNumber; public UserInfo(String userName) {this.userName=userName;} public UserInfo(String userName,int userNumber) {____________________________________________; this.userNumber=userNumber; } }",{"answer":70,"createTime":5,"id":6,"options":71,"question":19,"source":30,"type":31},[],[8,9,10,11],{"answer":73,"createTime":5,"id":74,"options":75,"question":80,"source":30,"type":31},[],161085130,[76,77,78,79],"局部变量在使用之前无须初始化,因为系统会为该变量提供默认值","类成员变量由系统自动进行初始化","方法的参数的作用域就是所在的方法体中","语句块中定义的变量,当语句块执行完时,该变量就消亡了","下列说法中不正确的是( )",{"answer":82,"createTime":5,"id":83,"options":84,"question":89,"source":30,"type":31},[],161085131,[85,86,87,88],"Java语言规定构造方法没有返回值,但不用void声明","Java语言规定构造方法名与类名必须相同","Java语言规定构造方法不可以重载","Java语言规定构造方法需要使用new关键字调用","下列关于构造方法的描述中错误的是( )",{"answer":91,"createTime":5,"id":92,"options":93,"question":98,"source":30,"type":31},[],161085132,[94,95,96,97],"为对象分配内存空间","调用类的构造方法创建对象","返回对象的引用","产生一个新的类型","下列( )不是Java的new操作符的作用"]