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 |
Can a constructor call another constructor?
Explain about field hiding in java?
Differentiate between vector and array list.
What is the abstraction?
How do you remove an element from an arraylist in java?
Difference between error and exception
Why does my function print none?
Can a singleton class be inherited?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
What is the return type of a program?s main() method?
What is the multilevel inheritance. and also give the Example of it ?
How do you get length in java?