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,
Is the session factory thread safe?
Does Java pass arguments by value or reference?
can i call multipule form beans in Action class?
wahts is mean by dynavalidatorform in struts/
How u validate date in DD/MM/YY format. and how u validate money in ur jsp
3 Answers Ashok Leyland, Satyam, Tech Mahindra, Tomax,
Is jvm a overhead?
How primary key is implemented in Oracle?
What is the difference between RMI and Corba?
What is the difference between Process and Threads?
JMS based on what technology?
Howmany interfaces are used in RMI?