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 |
Difference between JRE and JVM?
3 Answers HeadStrong, Infotech,
What value does readline() return when it has reached the end of a file?
can a static method be overridden
when we applied start()method on a thread ,how does it know that to execute run()method on that object?
What are preemptive scheduling and time slicing and what is the difference between them?
Wt is the main difference between Java and Java J2EE and Advanced java?
What is codebase in applet?
How to send a request to garbage collector?
Will it be called overriding if I do not change the parameters or return type, instead throw a different exception in the method signature.
difference. between List and Set?
2 Answers Campus Interaction, HCL, Infotech,
How can I scroll through list of pages like the search results in google?
What is the difference between Super and This Keyword?