Hi, Thanks Nik for provided me link but that discussion is really confusing for me. Can any one please explain me this with simple example. Thanks in Advance. [ June 29, 2007: Message edited by: Divya Gehlot ]
SCJP1.5(81%), SCDJWS(94%), next mission SCEA (but need to wait or that)
If you're not sure about the differences between a class lock and an object lock, the now would probably be a good time to work though the Sun Java Thread Tutorial, which explains these concepts, and also has plenty of examples. The chapter on Synchronization is especially relevant.