![](https://img-blog.csdnimg.cn/20191203164511694.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
面试题
经典面试题
「已注销」
write code to change the world!
展开
-
子类对象创建过程
/** * @author espen_tian * @version v1.0 * @description * @date 2019-12-03 20:49 */public class InstanceTest { public static void main(String[] args) { new Sun(); System.out.println("*...原创 2019-12-03 21:25:55 · 287 阅读 · 0 评论 -
sleep()和wait()的异同
相同点:都可以使线程进入阻塞状态不同点:sleep()可以在任意位置调用,wait()只能在同步代码块或同步方法中调用sleep()声明在Thread类中,wait()方法声明在Object类中sleep()不会释放锁,wait()会释放锁...原创 2019-11-26 17:14:07 · 83 阅读 · 0 评论