<?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: Immutable nature of String &#8211; JAVA	</title>
	<atom:link href="https://www.jitendrazaa.com/blog/java/immutable-nature-of-string-java/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.jitendrazaa.com/blog/java/immutable-nature-of-string-java/</link>
	<description>AI, Salesforce, ServiceNow &#38; Enterprise Tech Guides</description>
	<lastBuildDate>Sat, 03 Nov 2012 00:20:00 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Pralay		</title>
		<link>https://www.jitendrazaa.com/blog/java/immutable-nature-of-string-java/#comment-191</link>

		<dc:creator><![CDATA[Pralay]]></dc:creator>
		<pubDate>Sat, 03 Nov 2012 00:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://JitendraZaa.com/blog/?p=536#comment-191</guid>

					<description><![CDATA[Shiva, if you create a String &quot;not&quot;using new, it will be placed in the string pool. 
String trialString = &quot;My name is Pralay&quot;; // this is not placed in heap, goes to string literal pool
String bString = new String(&quot;I am a Masters, Comp Sci student at Univ. of California&quot;; //This does a heap memory allocation since we have used a &quot;new&quot;.
Thanks.]]></description>
			<content:encoded><![CDATA[<p>Shiva, if you create a String &#8220;not&#8221;using new, it will be placed in the string pool.<br />
String trialString = &#8220;My name is Pralay&#8221;; // this is not placed in heap, goes to string literal pool<br />
String bString = new String(&#8220;I am a Masters, Comp Sci student at Univ. of California&#8221;; //This does a heap memory allocation since we have used a &#8220;new&#8221;.<br />
Thanks.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: www.jitendrazaa.com @ 2026-06-01 18:16:56 by W3 Total Cache
-->