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...

What are the two ways you can synchronize a block of code?

Answer Posted / popol83

I think using mutex is the second way.
Because synchronizing an object is useless

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is finalize method?

1142


What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?

1122


How is hashcode calculated in java?

1044


Can variables be used in java without initialization?

1100


Which of the following is not an isolation level in the JDBC

2131


Can abstract class have private constructor?

953


hr interview how many minutes asking question

2052


Can a final variable be null?

1027


How can you traverse a linked list in java?

1143


What is the difference between throw and throws keywords?

1063


What is super in java?

1006


do I need to use synchronized on setvalue(int)? : Java thread

1023


What are the default and parameterized constructors?

1069


What is merge sort in java?

985


Tell me are there implementations for sorting and searching in the java libarary?

1047