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
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
What modifiers may be used with an inner class that is a member of an outer class?
What is RMI and what are the services in RMI?
How to implement RMI in Java?
Do we need to override service() method
which type of objects reference will be given to client?
What is meant by method chaining?
What are the diff types of exception?
what are RemoteObjects?
What is Remote Server?
What is aop(assepct oriented programing)?
What is scalable, portability in the view of J2EE?
What is the difference between the string and stringbuffer classes?
What restrictions are placed on the location of a package statement within a source code file?
What are the design considerations while making a choice between using interface and abstract class?