• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sychronized class  RSS feed

 
Raj chiru
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...
How to make class synchronized?
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you cant synchronize a class . you can synchronize the methods which are in the class
 
Vijitha Kumara
Bartender
Posts: 4002
42
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
raj chiru wrote: How to make class synchronized?


You have two options for synchronizing (assuming you are talking about thread safe coding):
1. Synchronize methods.
2. Synchronize statements.

You may explain the problem you are trying to solve ?
 
Muhammad Khojaye
Ranch Hand
Posts: 449
IntelliJ IDE Java Scala
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!