What is synchronization? How it can be achieved?

Answer Posted / ravikiran(aptech mumbai)

synchronization is the process of allowing only one thread
at a time.It's been achieved by marking the method as
synchronized or locking a particular portion of code

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why vector class is used?

533


Is it possible to compare various strings with the help of == operator?

538


Can I overload to string method

960


What is the difference between Error, defect,fault, failure and mistake?

650


Can a abstract class be declared final?

558






What is class??

747


What are the two types of exceptions in java? Which are the differences between them?

503


how to handle exceptions in ejb?

1863


What is linked hashset and its features?

541


Why we use set in java?

508


Why do we need wrapper class?

531


What is null statement?

525


Explain the private protected method modifier?

538


Can you use this() and super() both in a constructor?

518


what is static import in java? Explain

546