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

Why ArrayList class is not a synchronized class and why it
is not a thread safe class? explain

Answer Posted / atre sachin

If multiple threads access an ArrayList instance concurrently, and at least one of the threads modifies the list structurally, it must be synchronized externally. (A structural modification is any operation that adds or deletes one or more elements, or explicitly resizes the backing array; merely setting the value of an element is not a structural modification.)

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In which language java is written?

982


Is null a string?

1003


How to overcome the exception object reference not set to an instance of object?

1153


Can we use return in constructor?

952


What is a generic code?

1065


What are the 3 types of loops in java?

1086


What are different types of arrays?

1015


What are the properties of thread?

930


What is return used for in java?

1026


What is the use of a conditional inclusion statement in Java ?

1095


What is the same as procedures?

988


What is "this" keyword in java? Explain

1099


what are the disadvantages of indexes in oracle?

2557


What is the inheritance?

975


What is method in java ?

1084