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

How many bytes is double?

926


Can inner class final?

1054


What is the benefit of abstract class?

898


What is meant by design patterns?

985


What is append in java?

1101


Why string is immutable or final in java

1033


What are the methods of object class ?

1008


What is assembly language?

933


What is threaded programming and when is it used? : Java thread

1027


What is difference between Heap and Stack Memory?

996


What java is used for?

1029


What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

1091


Name few java util classes introduced with java 8 ?

882


Which containers use a flowlayout as their default layout in java programming?

948


How do you sort in java?

947