Which two can be used to create a new Thread? ()
- A、 Extend java.lang.Thread and override the run method.
- B、 Extend java.lang.Runnable and override the start method.
- C、 Implement java.lang.thread and implement the run method.
- D、 Implement java.lang.Runnable and implement the run method.
- E、 Implement java.lang.Thread and implement the start method.
正确答案:A,D
答案解析:有
微信扫一扫手机做题