[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f5GFxm0i4rdZ-qoiMb3DrRXJr3NCHBWOIxyQshu7Zb-A":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":13,"question":20,"related":21,"source":32,"type":33},[],"2025-03-14 13:58:35",179140619,[8,9,10,11,12],"'x'","120","120.0","&quot;x&quot;","&quot;120&quot;",{"count":14,"courseId":15,"courseImg":16,"courseName":17,"workId":18,"workName":19},101,"6cf6c5df071041625b1b8b58df9c25f5","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F6884536a76377921d52baf2f6464bbf6.png","Java程序设计","32a616626ae34ccfaac9d572e94e2d2b","多选题","int变量可以保存__________",[22,34,42,51,60,69,78,81,90,99],{"answer":23,"createTime":24,"id":25,"options":26,"question":31,"source":32,"type":33},[],"2025-03-14 13:58:34",179140613,[27,28,29,30],"如果类中没有显式声明构造方法,则会自动提供默认构造函数","必须始终显式定义至少一个构造方法","每个类都有一个默认构造方法","默认构造函数是无参数构造方法","以下哪项陈述是正确的","v1",1,{"answer":35,"createTime":24,"id":36,"options":37,"question":31,"source":32,"type":33},[],179140614,[38,39,40,41],"一个类中可以定义多个构造方法","构造方法没有返回值类型,甚至连void也没有","构造方法必须与类本身同名","在创建对象时使用new运算符调用构造方法",{"answer":43,"createTime":24,"id":44,"options":45,"question":50,"source":32,"type":33},[],179140615,[46,47,48,49],"程序有编译错误,因为类a不是公共类","程序有编译错误,因为类a没有默认构造函数","该程序编译运行良好,没有打印任何内容","如果将A a = new A()更改为A a = new A(&quot;5&quot;),程序将编译并运行","分析以下代码:public class Test { public static void main(String[] args) { A a = new A(); a.print(); }}class A { String s; A(String s) { this.s = s; } void print() { System.out.println(s); }}",{"answer":52,"createTime":5,"id":53,"options":54,"question":31,"source":32,"type":33},[],179140616,[55,56,57,58,59],"局部变量没有默认值","数据域具有默认值","基本类型的变量包含基本类型的值","引用类型的变量保存对对象存储在内存中的位置的引用","可以将int值赋给引用变量",{"answer":61,"createTime":5,"id":62,"options":63,"question":68,"source":32,"type":33},[],179140617,[64,65,66,67],"引用变量是一个对象","引用变量引用对象","类中的数据域必须是基本类型","类中的数据域可以是对象类型","下列哪项陈述是正确的",{"answer":70,"createTime":5,"id":71,"options":72,"question":77,"source":32,"type":33},[],179140618,[73,74,75,76],"this.t()可以用t()代替","this.i可以用i代替","必须在System.out.println(&quot;Default constructor&quot;)之前调用this(1)","this(1) 必须替换为this(1.0)","分析以下代码:class Test { private double i; public Test(double i) { this.t(); this.i = i; } public Test() { System.out.println(&quot;Default constructor&quot;); this(1); } public void t() { System.out.println(&quot;Invoking t&quot;); }}",{"answer":79,"createTime":5,"id":6,"options":80,"question":20,"source":32,"type":33},[],[8,9,10,11,12],{"answer":82,"createTime":5,"id":83,"options":84,"question":89,"source":32,"type":33},[],179140620,[85,86,87,88],"char c = 'd'","char c = 100","char c = &quot;d&quot;","char c = &quot;100&quot;","下列变量定义语句正确的是__________",{"answer":91,"createTime":5,"id":92,"options":93,"question":98,"source":32,"type":33},[],179140621,[94,95,96,97],"String s3 = s1 - s2","boolean b = s1.compareTo(s2)","char c = s1[0]","char c = s1.charAt(s1.length())","假设s1和s2是两个字符串.下列哪个语句或表达式不正确",{"answer":100,"createTime":5,"id":101,"options":102,"question":108,"source":32,"type":33},[],179140622,[103,104,105,106,107],"&quot;peter&quot;.compareToIgnoreCase(&quot;Peter&quot;)","&quot;peter&quot;.compareToIgnoreCase(&quot;peter&quot;)","&quot;peter&quot;.equalsIgnoreCase(&quot;Peter&quot;)","&quot;peter&quot;.equalsIgnoreCase(&quot;peter&quot;)","&quot;peter&quot;.equals(&quot;peter&quot;)","以下表达式的计算结果为true的是__________"]