731.Java 实现线程有哪几种方式?

  1. 继承 Thread 类实现多线程
  2. 实现 Runnable 接口方式实现多线程
  3. 使用 ExecutorService、Callable、Future 实现有返回结果的多线程