[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fNXEcp6FiNZk4sfvfuHNpZQ3GO_OOAsfA1-VfqtxFrqY":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":8,"question":15,"related":16,"source":27,"type":119},[],"2024-11-11 16:57:14",165449410,[],{"count":9,"courseId":10,"courseImg":11,"courseName":12,"workId":13,"workName":14},50,"927801b7ed99673834c14ae17c30280d","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002Fb838fef161a2bde71ac14f4feee8a987.webp","面相对象程序设计（Java）","work_38732655","Homework8","阅读程序,写出程序运行结果.\u002F\u002F写出程序运行结果class Eye {\u002F\u002F 猫的眼睛类 private String color; public Eye(String color) { this.color = color; }}class Cat {\u002F\u002F 猫类 private String name; private Eye eye; public Cat(String name, Eye eye) { this.name = name; this.eye = eye; } public boolean equals(Object obj) { Cat cat = (Cat) obj; if (this.name.equals(cat.name) &amp;&amp; this.eye == cat.eye) return true; return false; }}public class CatDemo { public static void main(String[] args) { Eye e1=new Eye(&quot;蓝色&quot;); Eye e2=new Eye(&quot;蓝色&quot;); Cat tom1=new Cat(&quot;Tom&quot;,e1); Cat tom2=new Cat(&quot;Tom&quot;,e2); System.out.println(tom1==tom2); System.out.println(tom1.equals(tom2)); }}",[17,29,38,48,57,66,75,87,98,109],{"answer":18,"createTime":19,"id":20,"options":21,"question":26,"source":27,"type":28},[],"2024-11-09 22:00:09",165223304,[22,23,24,25],"abstract修饰符可修饰成员变量、方法和类","抽象方法的方法体部分必须用一对大括号{ }包住","声明抽象方法,大括号可有可无","声明抽象方法不可写出大括号","下列( )叙述是正确的","v1",0,{"answer":30,"createTime":19,"id":31,"options":32,"question":37,"source":27,"type":28},[],165223308,[33,34,35,36],"类中的实例方法可直接调用超类中的实例方法","类中的实例方法可直接调用超类中的类方法","类中的实例方法可直接调用其他类中的实例方法","类中的实例方法可直接调用本类中的类方法","下列哪种叙述是正确的.( )",{"answer":39,"createTime":40,"id":41,"options":42,"question":47,"source":27,"type":28},[],"2024-11-09 22:00:11",165223312,[43,44,45,46],"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":49,"createTime":50,"id":51,"options":52,"question":56,"source":27,"type":28},[],"2024-11-09 22:00:12",165223315,[53,54,46,55],"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":58,"createTime":50,"id":59,"options":60,"question":65,"source":27,"type":28},[],165223317,[61,62,63,64],"当前对象的引用","当前对象直接父类对象的引用","当前对象祖先类对象的引用","当前类的子类对象的引用","super关键字表示( )",{"answer":67,"createTime":50,"id":68,"options":69,"question":74,"source":27,"type":28},[],165223319,[70,71,72,73],"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":76,"createTime":77,"id":78,"options":79,"question":85,"source":27,"type":86},[],"2024-11-11 16:57:04",165449345,[80,81,82,83,84],"void final methodX() { }","final void methodX() { }","static void methodX() { }","final abstract void methodX() { }","static final void methodX() { }","下面哪些声明能防止方法覆盖?( )",1,{"answer":88,"createTime":89,"id":90,"options":91,"question":97,"source":27,"type":86},[],"2024-11-11 16:57:07",165449347,[92,93,94,95,96],"private","public","protected","static","abstract","在Java语言中,不能用来修饰interface包括( )",{"answer":99,"createTime":100,"id":101,"options":102,"question":108,"source":27,"type":86},[],"2024-11-11 16:57:09",165449349,[103,104,105,106,107],"Y类的构造方法修饰符是public","Y类的构造方法修饰符是 protected","Y类的构造方法没有参数","Y类的构造方法调用了this( )","Y类的构造方法调用了super( )","有如下代码,下面哪些说法是正确的?( ) class X { X( ) { } } class Y extends X { }",{"answer":110,"createTime":111,"id":112,"options":113,"question":118,"source":27,"type":86},[],"2024-11-11 16:57:13",165449352,[114,115,116,117],"public void show( )","public static void print() { }","default void read(double x) { }","public void write(String data) { }","下面( )方法是接口中的合法方法.(JDK 8 及之后)",9]