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

How do you create a first line indent?

0 Answers  


What do you mean by singleton class in java?

0 Answers  


Define inheritance?

0 Answers  


What is the use of inner class?

0 Answers  


Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?

0 Answers  


What is adapter class?

12 Answers  


What is broken and continue statement?

0 Answers  


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

0 Answers  


What is data type modifier?

0 Answers  


Do I need to import java.lang package any time? Why?

1 Answers  


Why string is immutable with example?

0 Answers  


What do you mean by the term transient?

5 Answers   Ericsson,


Categories