Object类的方法简谈
Java中所有的类都继承自Object类,那我们今天来探讨一下Object类中的方法
PS:Object源码中,作者那一栏中,出现了这个
package java.lang;/*** Class {code Object} is the root of the class hierarchy.* Every class h…
sleep原理
sleep是Thread类中的静态方法,首先看下sleep的源码
/*** Causes the currently executing thread to sleep (temporarily cease* execution) for the specified number of milliseconds, subject to* the precision and accuracy of system timers and …