What is synchronization? How it can be achieved?

Answers were Sorted based on User's Feedback



What is synchronization? How it can be achieved?..

Answer / 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

What is synchronization? How it can be achieved?..

Answer / sainaveen

Synchronization is a mechanism used to control multiple
threads from accessing shared resources, if multiple
threads access shared resources there might be a chance for
one thread to change the shared values of another thread
leading to errors

Is This Answer Correct ?    6 Yes 8 No

Post New Answer

More Core Java Interview Questions

what is the volatile modifier for? : Java thread

0 Answers  


Is array a class?

0 Answers  


what is the use of bean managed and container managed with example?

0 Answers   EDS,


What is the range of a character variable?

0 Answers  


Real Time sample code for Encapsulation and Abstraction. where to use abstract and where to use specifies like public private.

2 Answers  






What is an abstract method in java programming?

0 Answers  


What is the basically use of finally while we know it is always executed but why?

5 Answers   Oracle, TCS,


What are "methods" and "fields"?

0 Answers   Wipro,


What is a pointer and does java support pointers?

0 Answers  


What is use of static in java?

0 Answers  


Is arraylist a class in java?

0 Answers  


How do you remove all elements from an arraylist in java?

0 Answers  


Categories