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
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!
Write a singleton program?
What is the highest-level event class of the event-delegation model?
What modifiers may be used with an interface declaration?
What value does readline() return when it has reached the end of a file?
What is jboss?
Brief description about local interfaces?
Explain about RMI Architecture?
How a component can be placed on Windows?
What is RMI and what are the services in RMI?
Explain phantom read?
What must a class do to implement an interface?
Is the infobus client side only?
What is the relationship between an event-listener interface and an event-adapter class?
How substring() method of string class create memory leaks?