What is synchronization? How it can be achieved?
Answers were Sorted based on User's Feedback
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 |
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 |
What do you mean by constructor?
Is a class an object?
Is main a function?
what is the difference between sleep() and Wait()?
How many bits is a string?
What are data structures in java?
What is the inheritance?
what is java
Explain the JDB in depth & command line.
What is a null point?
How to extract HashMap values?
What do you understand by garbage collection in Java? Can it be forced to run?