多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

下列代码正确的是哪项?() 

  • A、 public class Session implements Runnable, Clonable{   public void run ();public Object clone () ; }
  • B、 public class Session extends Runnable, Cloneable {  public void run() {/*dosomething*/}       public Object clone() {/*make a copy*/} }
  • C、 public abstract class Session implements Runnable, Clonable {       public void run() {/*do something*/}       public Object clone() {/*make a copy*/}        }
  • D、 public class Session implements Runnable, implements Clonable {       public void run() {/*do something*/}       public Object clone() {/*make a copy*/}       }
正确答案:C
答案解析:
进入题库查看解析

微信扫一扫手机做题