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

Difference between comparator and comparable in java?

1096


Can a constructor be protected?

1087


Can a constructor call another constructor?

983


What are encapsulation, inheritance and polymorphism?

1012


What is the difference between a static and a non-static inner class in java programming?

1072


What is locale in java?

1018


What does sprintf return?

1060


How do you create a reference in java?

979


What is java life cycle?

1005


What is the difference between integer parseint and integer valueof?

1000


Can we instantiate interface in java?

1128


Explain list interface?

960


What are internal variables?

1001


What are the 7 types of characters?

1081


Which software is used for java programming?

1021