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 is a concrete classes? Is Java object class is concrete class?
How do you square a number in java?
What is the use of arraylist in java?
How to split arraylist elements in java?
Ducking is automatic in checked exception?True or false
How to calculate the length of a singly linked list in java?
What is int argc char * argv?
What are advantages and disadvantages of OOPs?
What is null object in java?
What are passing parameters?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
What are the java ide’s?