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

Does a function need a return?

531


Does treeset use compareto?

538


What is contractor means and methods?

554


What do you mean by an object in java?

627


What is the difference between and ?

506






How are variables stored in memory?

572


When should a function throw an exception?

597


Can size_t be negative?

608


what do you mean by marker interface in java?

541


List out benefits of object oriented programming language?

481


Write code to implement bubble sort in java?

555


Explain differences between collection api and stream api?

610


What is method in java ?

622


what is server side caching?

1603


Is static a singleton?

519