Java: Out with the Old, In with the New

后端 未结 30 1967
遥遥无期
遥遥无期 2020-12-22 16:11

Java is nearing version 7. It occurs to me that there must be plenty of textbooks and training manuals kicking around that teach methods based on older versions of Java, whe

30条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-22 16:27

    Older code using Thread instead of the many other alternatives to Thread... these days, very little of the code I run across still needs to use a raw thread. They would be better served by a level of abstraction, particular Callable/Futures/Executors.

    See:

    java.util.Timer

    javax.swing.Timer

    java.util.concurrent.*

提交回复
热议问题