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 io stream in java?

1128


What all access modifiers are allowed for top class ?

1240


What is type safety in java?

991


What does g mean in regex?

1031


Which browsers work with java?

1111


How can we make a class singleton?

1125


Can you pass functions in java?

1073


What does java edition mean?

1259


What is the disadvantage of java?

1011


What is the difference between abstract class and interface1? What is an interface?

1128


What is map java?

1028


what r advatages of websphere? & how to deploy?

2257


Write a program to search a number in the given list of numbers.

1076


What is ++ a in java?

1030


How do you clear a method in java?

1046