we have two threads..both the threads are reading the
data.. is there any need of synchronization
there?...justify it?
Answer Posted / babu
sychronization is used to execute only one thread or one
block ata time.if your not declare sychronized in the method
there is chance to execute the mixed data i.e.; to threads
start at atime.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Does a function need a return?
Does treeset use compareto?
What is contractor means and methods?
What do you mean by an object in java?
What is the difference between and ?
How are variables stored in memory?
When should a function throw an exception?
Can size_t be negative?
what do you mean by marker interface in java?
List out benefits of object oriented programming language?
Write code to implement bubble sort in java?
Explain differences between collection api and stream api?
What is method in java ?
what is server side caching?
Is static a singleton?