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

What is bifunction in java?

0 Answers  


How are this and super used?

7 Answers   IBM,


using equals method overriding which objects are compared?i.e same class objects or other class objects?Explain me.

4 Answers  


Explain the difference between serializable and externalizable in java?

0 Answers  


Difference between method overloading and overriding.

0 Answers  


Does java support function overloading, pointers, structures, unions or linked lists?

0 Answers  


Can we use different return types for methods when overridden?

0 Answers  


What is use of functional interface in java 8? Explain

0 Answers  


Java is Pass by Value or Pass by Reference?

0 Answers   BirlaSoft,


What is scope of a variable?

0 Answers   TCS,


What is a dot notation?

0 Answers  


How are java objects passed to a method and what are native methods?

0 Answers   Genpact,


Categories