Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 assembly language?

923


Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)

1283


What is the difference between a switch statement and an if statement?

1012


How do you include a string in java?

927


What is the default size of set in java?

898


What is the size of an array?

963


What is the final field modifier?

929


If two threads have same priority which thread will be executed first ?

1412


What occurs when an object is constructed?

936


Explain the difference between serializable and externalizable in java?

977


What are user defined exceptions?

962


Can an object subclass another object?

1018


What technique is carried out to find out if a particular string is empty?

971


Is boolean a data type in java?

897


Difference between string, string builder, and string buffer?

1020