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



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

Answer / 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

More Core Java Interview Questions

Give me example of derived data types.

0 Answers   Amdocs,


What carriage return means?

0 Answers  


What is the life-cycle of an object?

2 Answers   Broadridge, Syntel,


What is array size in java?

0 Answers  


Whats the difference between notify() and notifyall()?

0 Answers  


What JNDI(Java Naming and Directory Interface) provides?

4 Answers  


Explain role of constructor in a java application?

5 Answers  


What is bubble sort in java?

0 Answers  


What is arraylist e?

0 Answers  


Which method returns the length of a string?

0 Answers  


How do you reverse a word in java?

0 Answers  


What is JFC?

0 Answers  


Categories