• Post Reply Bookmark Topic Watch Topic
  • New Topic

diff b/w synchroised block, syhchronisation

 
ramchander yshetti
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai,
when do we synchBlock and sync..
 
megha ghanekar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ramchander,
I was not able to understand your question. Do you want to know the difference between synchronized blocks & synchronized methods?
Can you elaborate your question?

Warm Regards,
meghana
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 15715
73
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please try harder to explain your problem, because it's not very clear what you want to know. If it's about the difference between using a synchronized block and a synchronized method, note that the following two are equivalent:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!