ArrayList
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   raja_ambedkar
Posted On:   Tuesday, February 27, 2007 02:07 AM

is it Correct ArrayList will be Synchronised?it is Possible in which scenario applicable


.

Re: ArrayList

Posted By:   Anonymous  
Posted On:   Tuesday, February 27, 2007 05:02 AM

yes we can make an ArrayList synchronized.


ex: ArrayList syncedList = java.util.Collections.synchronizedList(new ArrayList());



it is needed when you are putting some data in ArrayList and all your Threads trying to modify the data in your ArrayList. Then it will be needful.
About | Sitemap | Contact