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
what is singleton in java?
Is string passed by reference in java?
Is 0 an irrational number?
Explain what pure virtual function is?
How can we make string upper case or lower case?
What is the latest java version?
what is the difference between a threads start() and run() methods? : Java thread
Write a program in java to find the maximum and minimum value node from a circular linked list.
What is the use of beaninfo?
Difference between serialization and deserialization in java?
Difference between predicate, supplier and consumer ?
What are the major advantages of internal iteration over external iteration?
What is meant by interface?
Why char array is favored over string for the storage of passwords?
Which is best ide for java?