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
Who developed java?
How many inner classes can a class have?
What is hash table in java?
What do you understand by java virtual machine?
Why is java logo a cup of coffee?
Explain serialization and deserialization in java?
Why is serialization required?
What are the skills required for core java?
What is the maximum length of a url?
Why put method is idempotent?
How do you call a reference in java?
What is queue in java?
What type of language is java?
What about main thread in java?
Is the empty set a singleton?