This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes  an parent object's lock Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

an parent object's lock

zhang feng

Joined: Dec 16, 2002
Posts: 19
the object has a lock,but consided the "abstract" class,that isn't instance,if it has a synchronized method ,i invoked the method from the driver class,i will receive the which locks?
the following class indicate my means:

at 1,i invoke the BaseClass f(),here,i will which lock,is Myclass's object?
why ?
thanks your help !
Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

closing this, because its a duplicate of this thread please continue the discussion in the original
subject: an parent object's lock