we have two threads..both the threads are reading the
data.. is there any need of synchronization
there?...justify it?
Answer Posted / sridhar
In this case synchronization is not requied because u r not
going to change the data.
U can use synchronization but performence will decrease.
| Is This Answer Correct ? | 16 Yes | 0 No |
Post New Answer View All Answers
What are java packages? What is the significance of packages?
Why string is called as immutable?
Does java runtime require a license?
What are design patterns and please explain?
What is the static block?
What happens if an exception is not handled in a program?
What is time complexity algorithm?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
What is a protected void?
What is the difference between static binding and dynamic binding?
Can we initialize the final blank variable?
What is passing parameters in java?
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
What is an arraylist in java?
Are floats faster than doubles?