Why arraylist(and other classes) cantnot be synchronized

Showing Answers 1 - 3 of 3 Answers

Dhananjay Singh

  • Oct 25th, 2005
 

ArrayList can not be synchronized because in synchronization the same data at the same time can access with out data loss or data corruption but in ArrayList it is not possible.

  Was this answer useful?  Yes

anil kumar

  • Oct 27th, 2005
 

We can convert ArrayList into equalent synchronized List by passing ArrayList object to Collections.synchronizedList(List li); it returns synchronized List type of object.

so we can be synchronized.

  Was this answer useful?  Yes

anil kumar

  • Oct 27th, 2005
 

We can convert ArrayList into equalent synchronized List by passing ArrayList object to Collections.synchronizedList(List li); it returns synchronized List type of object.so we can say that ArrayList can be synchronized

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions