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


Please Help Members By Posting Answers For Below Questions

What is intern method in java?

841


What is the use of inner class?

810


Why java is used everywhere?

789


Write a program to reverse a number in java?

826


What is a website container?

716


What do you understand by final value?

822


What does pointer mean?

786


Difference between process and thread?

847


What is meant by tab pans?

888


What are synchronized blocks in java?

823


What is nested top-level class?

816


What is codebase?

791


What do you mean by stream pipelining in java 8?

991


What do you understand by access specifiers in Java?

821


Explain the significance of listiterator.

806