What are synchronized methods and synchronized statements?
Answers were Sorted based on User's Feedback
Answer / tarunam verma
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 statements are the synchronised the bolck
containg the lock on some resource, statment in that block
are called synchronised statements
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / 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 |
Can we define constructors in Servlet?
3 Answers Accenture, Opus, Wipro,
what is diff between Access modifier and specifier?
What is metaspace?
whats is mean by object and class?
What is scalable, portability in the view of J2EE?
What is thread deadlock? How to resolve thread deadlock?
What is a thread?
What are the sequence of steps to write pub or sub model kind of application?
Difference Between getRequest and PostRequest?
what are JSP tags? what is difference between include action and directory?
difference between applicationserver and webserver
What is difference between object state and behavior?