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


Is Java Class Threadsafe ????? How to make Java class Thread
safe??

Answers were Sorted based on User's Feedback



Is Java Class Threadsafe ????? How to make Java class Thread safe??..

Answer / bojjanna

By Default java class a not tread safe, i we make a tread
safe we have three ways

1) avoiding the instance variables
2) by using Sycrinization
3) by using Syncronize block

Is This Answer Correct ?    19 Yes 1 No

Is Java Class Threadsafe ????? How to make Java class Thread safe??..

Answer / divya

using synchronization,immutable objects,thread safe wrappers

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Core Java Interview Questions

Why do we override tostring method in java?

0 Answers  


What is incompatible types in java?

0 Answers  


What about interthread communication and how it takes place in java?

0 Answers  


What modifiers can be used with a local inner class?

2 Answers  


How many types of assembly languages are there?

0 Answers  


Explain importance of finally block in java?

0 Answers  


What do you understand by Header linked List?

0 Answers   Genpact,


What is meant by the value of a variable?

0 Answers  


can I implement my own start() method? : Java thread

0 Answers  


What is number data type?

0 Answers  


What is the difference between yielding and sleeping?

0 Answers  


What is the range of the short type?

0 Answers  


Categories