C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers

114 comments

10,705 users

What are synchronized methods and synchronized statements?

0 votes
15 views
asked Jan 5, 2014 by smith Geek (15,340 points)

1 Answer

0 votes
Synchronized methods are methods that are declared with the keyword synchronized. A thread executes a synchronized method only after it has acquired the lock for the method's object or class. Synchronized statements are similar to synchronized methods. It is a block of code declared with synchronized keyword. A synchronized statement can be executed only after a thread has acquired the lock for the object or class referenced in the synchronized statement.
answered Jan 5, 2014 by rajesh Guru (39,140 points)

Related questions

0 votes
1 answer 13 views
13 views asked Dec 29, 2013 by john Guru (27,140 points)
0 votes
1 answer 18 views
18 views asked Jan 9, 2014 by sara Guru (24,570 points)
0 votes
1 answer 12 views
0 votes
1 answer 13 views
13 views asked Jan 10, 2014 by smith Geek (15,340 points)
0 votes
0 answers 53 views
53 views asked Jan 11, 2014 by smith Geek (15,340 points)
...