<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: java.util.ConCurrentModificationException</title>
	<atom:link href="http://www.techpitcher.com/javautilconcurrentmodificationexception.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.techpitcher.com/javautilconcurrentmodificationexception.html</link>
	<description></description>
	<lastBuildDate>Thu, 07 Apr 2011 07:04:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Shaili</title>
		<link>http://www.techpitcher.com/javautilconcurrentmodificationexception.html/comment-page-1#comment-193</link>
		<dc:creator>Shaili</dc:creator>
		<pubDate>Mon, 03 Aug 2009 05:27:04 +0000</pubDate>
		<guid isPermaLink="false">http://techpitcher.com/?p=168#comment-193</guid>
		<description>ConcurrentModificationException is thrown when one thread tries to modify a Collection while another thread is iterating over it. In general, the results of the iteration are undefined under such circumstances. Some Iterator implementations may choose to throw this exception if this behavior is detected while others can. Iterators that do this are known as fail-fast iterators, as they fail quickly and cleanly, rather that risking arbitrary, non-deterministic behavior at an undetermined time in the future.
In above case we are modifying collection in following line
i.add(10);
at the same time we are iterating the collection.
That is the reason for ConcurrentModificationException.</description>
		<content:encoded><![CDATA[<p>ConcurrentModificationException is thrown when one thread tries to modify a Collection while another thread is iterating over it. In general, the results of the iteration are undefined under such circumstances. Some Iterator implementations may choose to throw this exception if this behavior is detected while others can. Iterators that do this are known as fail-fast iterators, as they fail quickly and cleanly, rather that risking arbitrary, non-deterministic behavior at an undetermined time in the future.<br />
In above case we are modifying collection in following line<br />
i.add(10);<br />
at the same time we are iterating the collection.<br />
That is the reason for ConcurrentModificationException.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

