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 size_t?

0 Answers  


How to find the index of the largest number in an arraylist java?

0 Answers  


What is the difference between the file and randomaccessfile classes?

0 Answers  


what is Vector class?

2 Answers  


How many ways can an argument be passed to a subroutine and explain them?

0 Answers  






Hi, This is ravi i have a question like this i have string "UNDERSTAND" now i want to count the letters how many times it occures.i.e from the above string the out put should be like this U-1,N-2,D-2,E-1,R-1,S-1,T-1,A-1. how can i achieve this Thnaks in advance for your response ..

7 Answers  


What is the maximum size of byte array in java?

0 Answers  


Which is easier netbeans or eclipse?

0 Answers  


What is string builder?

0 Answers  


What are java threads?

0 Answers  


If there is no implementation of MARKER INTERFACE in java. Then how compiler come to know about specification.

2 Answers  


How can we achieve thread safety in java?

0 Answers  


Categories