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 intern method in java?
What is the use of inner class?
Why java is used everywhere?
Write a program to reverse a number in java?
What is a website container?
What do you understand by final value?
What does pointer mean?
Difference between process and thread?
What is meant by tab pans?
What are synchronized blocks in java?
What is nested top-level class?
What is codebase?
What do you mean by stream pipelining in java 8?
What do you understand by access specifiers in Java?
Explain the significance of listiterator.