File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
I agree. Here's the link:
subject: an parent object's lock
It's not a secret anymore!