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

How to make a method thread safe without using synchronized
keyword?

Answer Posted / aravinda reddy

Oneway of doing By making all the variables and methods in
the class as final.

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we force the garbage collection to run?

955


What is nullpointerexception in java?

1164


What are the differences between graph and tree?

1125


Is cout buffered?

1195


Explain what access modifiers can be used for methods?

1092


Can a class have more than one object?

997


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

988


Why singleton pattern is better than creating singleton class with static instance?

1004


What language is an assembler written in?

1001


How many types of memory areas are allocated by JVM in java?

1072


Is main a function?

1062


Can we have static methods in an interface?

1061


What is overriding in java?

1078


Why declare Main() method as a static in java ?

1088


Can two objects have same hashcode?

1006