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 |
Which programming language is best in future?
How can you set an applet’s height and width as a percentage?
What is java virtual machine? Explain
Differentiate between the constructors and methods in java?
How is Garbage collection done in Java?
What is jpa specification?
Can there be an abstract class with no abstract methods in it?
Java support what type of parameter passing ?
What is return type in java?
Does java support Operator Overloading?
Why main() method is public, static and void in java ?
How can we avoid including a header more than once?