[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fdBbKq360zO3HUqdQlwgqf6dLiBcV_15ntPRqcfleaoo":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":30,"type":41},[],"2026-04-29 21:43:18",354799883,[8,9,10,11],"private","protected","private或者protected","public",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},13,"53e1d2ef4961cca8eea3e23969ad2cb9","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F03a579384a6dc297c89809b582fcc767.png","默认课程","c7aa525b216f4396824b725cd5a834f3","第六章单元检测","在使用interface 声明一个接口时,只可以使用哪个修饰符修饰该接口? 或者",[21,32,42,51,58,67,76,79,88,94],{"answer":22,"createTime":5,"id":23,"options":24,"question":29,"source":30,"type":31},[],354799877,[25,26,27,28],"protected void speakHello()","public abstract static void cry()","int f()","abstract float g()","下列接口中标注的(A,B,C,D)中,哪两个是错误的? interface Takecare { protected void speakHello(); \u002F\u002FA public abstract static void cry(); \u002F\u002FB int f(); \u002F\u002FC abstract float g(); \u002F\u002FD }","v1",1,{"answer":33,"createTime":5,"id":34,"options":35,"question":40,"source":30,"type":41},[],354799878,[36,37,38,39],"一个类最多可以实现两个接口","如果一个抽象类实现某个接口,那么它必须要重写接口中的全部方法","如果一个非抽象类实现某个接口,那么它可以只重写接口中的部分方法","允许接口中只有一个抽象方法","下列哪个叙述是正确的",0,{"answer":43,"createTime":5,"id":44,"options":45,"question":50,"source":30,"type":41},[],354799879,[46,47,48,49],"public int f(){return 100+M;}","int f(){return 100;}","public double f(){return 2.6;}","public abstract int f()","将下列(A,B,C,D)哪个代码替换下列程序中的【代码】不会导致编译错误. interface Com { int M = 200; int f(); } class ImpCom implements Com { 【代码】 }",{"answer":52,"createTime":5,"id":53,"options":54,"question":57,"source":30,"type":41},[],354799880,[55,8,56,11],"class","extends","定义类头时,不可能用到的关键字是( )",{"answer":59,"createTime":5,"id":60,"options":61,"question":66,"source":30,"type":41},[],354799881,[62,63,64,65],"一个类只能有一个对象","一个对象可以属于几个不同的类","对象是类的一个具体实例(实体)","一个类中不可以有本类的对象","以下关于类和对象叙述正确的是( )",{"answer":68,"createTime":5,"id":69,"options":70,"question":75,"source":30,"type":41},[],354799882,[71,72,73,74],"float A a","public A a=A( )","A a=new int( )","static A a=new A( )","设 A为已定义的类名,下列声明A类的对象a的语句中正确的是( )",{"answer":77,"createTime":5,"id":6,"options":78,"question":19,"source":30,"type":41},[],[8,9,10,11],{"answer":80,"createTime":5,"id":81,"options":82,"question":87,"source":30,"type":41},[],354799884,[83,84,85,86],"public class A extends Object{&hellip;&hellip; }","final class B{&hellip;&hellip;}","class C{&hellip;&hellip;}","void class D{&hellip;&hellip;}","下列类的定义,错误的是( )",{"answer":89,"createTime":5,"id":90,"options":91,"question":93,"source":30,"type":41},[],354799885,[11,56,92,55],"interface","定义一个接口时,下列哪个关键字用不到",{"answer":95,"createTime":5,"id":96,"options":97,"question":102,"source":30,"type":41},[],354799886,[98,99,100,101],"构造函数的函数名与类同名","在一个类中,只能定义一个构造函数","创建对象时构造函数自动被调用","构造函数没有类型","下列说法中错误的是( )"]