1.如果使用synchronized(this){},这个this是不是就是指其所在class的对象,这也和Thread(classname)中传入的class相同?
2.如果在方法体上使用synchronized关键字,这时同步锁加的对象是谁?该方法所在的类的对象?
初学者,希望大家多多海涵!