[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f48w5Dwpyz3vc8bw5oXqg51TesLoIrVJ2pcQ1pbFz5Gk":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":13,"question":20,"related":21,"source":32,"type":91},[],"2024-11-11 16:57:09",165449349,[8,9,10,11,12],"Y类的构造方法修饰符是public","Y类的构造方法修饰符是 protected","Y类的构造方法没有参数","Y类的构造方法调用了this( )","Y类的构造方法调用了super( )",{"count":14,"courseId":15,"courseImg":16,"courseName":17,"workId":18,"workName":19},50,"927801b7ed99673834c14ae17c30280d","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002Fb838fef161a2bde71ac14f4feee8a987.webp","面相对象程序设计（Java）","work_38732655","Homework8","有如下代码,下面哪些说法是正确的?( ) class X { X( ) { } } class Y extends X { }",[22,34,43,53,62,71,80,92,103,106],{"answer":23,"createTime":24,"id":25,"options":26,"question":31,"source":32,"type":33},[],"2024-11-09 22:00:09",165223304,[27,28,29,30],"abstract修饰符可修饰成员变量、方法和类","抽象方法的方法体部分必须用一对大括号{ }包住","声明抽象方法,大括号可有可无","声明抽象方法不可写出大括号","下列( )叙述是正确的","v1",0,{"answer":35,"createTime":24,"id":36,"options":37,"question":42,"source":32,"type":33},[],165223308,[38,39,40,41],"类中的实例方法可直接调用超类中的实例方法","类中的实例方法可直接调用超类中的类方法","类中的实例方法可直接调用其他类中的实例方法","类中的实例方法可直接调用本类中的类方法","下列哪种叙述是正确的.( )",{"answer":44,"createTime":45,"id":46,"options":47,"question":52,"source":32,"type":33},[],"2024-11-09 22:00:11",165223312,[48,49,50,51],"30","30.0","30.000","编译失败","以下程序运行结果是( ). class FatherX{ public Integer getX() { return new Integer(10); }}class Son extends FatherX{ public Double getX() { return new Double(20); }}public class Demo12 { public static void main(String[] args) { FatherX f=new FatherX(); Son s=new Son(); System.out.println(f.getX()+s.getX()); }}",{"answer":54,"createTime":55,"id":56,"options":57,"question":61,"source":32,"type":33},[],"2024-11-09 22:00:12",165223315,[58,59,51,60],"10","10 10","程序可以正常运行,但没有输出内容","以下程序的运行结果是( ). class A{ A( ){ System.out.print(10); }}public class Demo extends A { public static void main(String[] args) { new A( ); new Demo( ); }}",{"answer":63,"createTime":55,"id":64,"options":65,"question":70,"source":32,"type":33},[],165223317,[66,67,68,69],"当前对象的引用","当前对象直接父类对象的引用","当前对象祖先类对象的引用","当前类的子类对象的引用","super关键字表示( )",{"answer":72,"createTime":55,"id":73,"options":74,"question":79,"source":32,"type":33},[],165223319,[75,76,77,78],"int[ ] arr={11,21,31};for(int x:arr) System.out.println(x)","Object[ ] obj=new String[]{&quot;111&quot;,&quot;2222&quot;,&quot;3333&quot;};String [ ] str=(String[])obj","Object[ ] obj={&quot;111&quot;,&quot;2222&quot;,&quot;3333&quot;};String [ ] str=(String[])obj","Object[ ] arr=new Float[ ]{11.1F,22.1F,33.3F,44.44F,55.55F};for(Float x:(Float[])arr) System.out.println(x)","执行( )程序段之后将出现错误提示",{"answer":81,"createTime":82,"id":83,"options":84,"question":90,"source":32,"type":91},[],"2024-11-11 16:57:04",165449345,[85,86,87,88,89],"void final methodX() { }","final void methodX() { }","static void methodX() { }","final abstract void methodX() { }","static final void methodX() { }","下面哪些声明能防止方法覆盖?( )",1,{"answer":93,"createTime":94,"id":95,"options":96,"question":102,"source":32,"type":91},[],"2024-11-11 16:57:07",165449347,[97,98,99,100,101],"private","public","protected","static","abstract","在Java语言中,不能用来修饰interface包括( )",{"answer":104,"createTime":5,"id":6,"options":105,"question":20,"source":32,"type":91},[],[8,9,10,11,12],{"answer":107,"createTime":108,"id":109,"options":110,"question":115,"source":32,"type":91},[],"2024-11-11 16:57:13",165449352,[111,112,113,114],"public void show( )","public static void print() { }","default void read(double x) { }","public void write(String data) { }","下面( )方法是接口中的合法方法.(JDK 8 及之后)"]