在课上看到:
public class buffer{
private int nbElement;
private int [] tableau;
private Object lockNbe;
private ReentranLock [] lock;
public buffer(int taille){
nbElement=0;
tableau =new int [taille];
lockNbe=new Object();
for(int i=;i<taille;i++){
lock[i]=new ReentrantLock();
}}}
请问下Object是什么意思?干嘛用的?
|