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

What is primitive array?

866


What is the purpose of using bufferedinputstream and bufferedoutputstream classes?

1036


What is garbage collector?

1014


What are the basic concepts of OOPS in java?

982


What are the differences between wait() and sleep()?

964


Why string objects are immutable in java?

1002


What is an empirical question?

922


What is the function of java?

954


What is replacefirst in java?

1039


What is the use of predicate in java 8?

899


What are the two types of streams offered by java 8?

882


What is the purpose of the enableevents() method?

995


How can I right-justify a string?

1110


What will happen to the exception object after exception handling?

949


What are adapter classes?

997