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

What is a stack class in java ?

1103


What is byte [] in java?

1009


What is the size of boolean variable?

1070


What is better- service oriented or batch oriented solutions?

2205


What is the difference between this() and super() in java?

1034


What is the function of static in java?

1070


Is jdk required on each machine to run a java program?

1278


What is use of super keyword?

959


What is printwriter in java?

948


Can you explain the meaning of aggregation and composition

1004


Can we cast any other type to boolean type with type casting?

952


Explain public static void main(string args[]) in java.

984


What is the do while loop syntax?

1026


When should the method invokelater() be used?

1014


What is package protected in java?

980