What are synchronized methods and synchronized statements?
Answer Posted / sainaveen
Syncronized methods are executed only after a lock is
acheived on the classes or objects specified in the methids
and after that the methids are executed
Synchronized methods are executed after lock is acieved on
class or object specified in the synchronized statement
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Explain about RMI Architecture?
Why use POJO when I can use hashmap
What is the difference between RMI and Corba?
Describe activation process?
Difference between hashmap and hashtable?
what are memory considerations of jsp compares to other web components?
int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!
What restrictions are placed on the values of each case of a switch statement?
What is a clone?
Can constructors be synchronized in java?
What are the pros and cons of detached objects?
What is jboss?
What restrictions are placed on the location of a package statement within a source code file?
Why are some of the class and element names counter-intuitive?
What is the purpose of the wait() method?