• Post Reply Bookmark Topic Watch Topic
  • New Topic

query about synchronized  RSS feed

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


In this piece of code what does the "synchronized(this)" do?
[ August 11, 2008: Message edited by: Rob Prime ]
 
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"abin abin joy",

Please read your private messages regarding an important announcement.

Thank you,

Rob

Also, UseRealWords. When I read your subject I had no idea what "abt" meant. you should also UseCodeTags. I changed your post for you (also to fix the subject), and look how much better the code part looks.

As for your question, check out the JLS.

Finally, moving to the beginner's forum.
[ August 11, 2008: Message edited by: Rob Prime ]
 
Ranch Hand
Posts: 162
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this Link . That may be useful for you.

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!