 




<?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: null v/s &#8221; &#8220;(empty string) in Java</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/null-vs-empty-string/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/null-vs-empty-string/</link>
	<description></description>
	<lastBuildDate>Sun, 19 May 2013 03:14:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: chippy088</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/null-vs-empty-string/#comment-84150</link>
		<dc:creator>chippy088</dc:creator>
		<pubDate>Mon, 22 Nov 2010 11:38:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-84150</guid>
		<description><![CDATA[Just for information only, don&#039;t know if it will help with Java, but, NULL is also used within a batch file. It is actually defined in the OS as a virtual device, I like to think of it as a black hole. Anything written to it is swallowed up and never to be retrieved.

I have used it, in batch files,when a calling a command, which returns a status value/error code to the calling prog, and I have not wanted it to be displayed on screen. It is a pointer to a &#039;void&#039;, so the return value/error code gets dropped.

Your &#039;emty string(&quot; &quot; )&#039; actually isn&#039;t empty, it contains a space (chr$32) and empty string is indicated by &quot;&quot; (no space between the quotes.) so if you are having problems with empty strings, this may be the reason.

I am not conversant with java, but in C, C++, VB (and many other high level languages,) it is an indication that the variable hasn&#039;t been used, (but it has been declared, and a pointer has been allocated for any value it recieves) or, it has been emptied, so it can be re-used as a clean container.]]></description>
		<content:encoded><![CDATA[<p>Just for information only, don&#8217;t know if it will help with Java, but, NULL is also used within a batch file. It is actually defined in the OS as a virtual device, I like to think of it as a black hole. Anything written to it is swallowed up and never to be retrieved.</p>
<p>I have used it, in batch files,when a calling a command, which returns a status value/error code to the calling prog, and I have not wanted it to be displayed on screen. It is a pointer to a &#8216;void&#8217;, so the return value/error code gets dropped.</p>
<p>Your &#8216;emty string(&#8221; &#8221; )&#8217; actually isn&#8217;t empty, it contains a space (chr$32) and empty string is indicated by &#8220;&#8221; (no space between the quotes.) so if you are having problems with empty strings, this may be the reason.</p>
<p>I am not conversant with java, but in C, C++, VB (and many other high level languages,) it is an indication that the variable hasn&#8217;t been used, (but it has been declared, and a pointer has been allocated for any value it recieves) or, it has been emptied, so it can be re-used as a clean container.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/null-vs-empty-string/#comment-84052</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 19 Nov 2010 03:22:34 +0000</pubDate>
		<guid isPermaLink="false">#comment-84052</guid>
		<description><![CDATA[&lt;i&gt;wat is the meaning of the abouve if statement?&lt;/i&gt;

(name == null) says that no assignment has been made yet.
(name == &quot;&quot;) says that an assignment has been made; its value is &quot;&quot;.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>wat is the meaning of the abouve if statement?</i></p>
<p>(name == null) says that no assignment has been made yet.<br />
(name == &#8220;&#8221;) says that an assignment has been made; its value is &#8220;&#8221;.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/null-vs-empty-string/#comment-84034</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Thu, 18 Nov 2010 15:15:42 +0000</pubDate>
		<guid isPermaLink="false">#comment-84034</guid>
		<description><![CDATA[The question is not related to databases at all, but the answer might still help.

You might want to take a look at this:

&lt;a href=&quot;http://mindprod.com/jgloss/null.html&quot;&gt;null : Java Glossary&lt;/a&gt;

Experimenting is usually a good way to learn.]]></description>
		<content:encoded><![CDATA[<p>The question is not related to databases at all, but the answer might still help.</p>
<p>You might want to take a look at this:</p>
<p><a href="http://mindprod.com/jgloss/null.html">null : Java Glossary</a></p>
<p>Experimenting is usually a good way to learn.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/8 queries in 0.011 seconds using memcached
Object Caching 297/298 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 10:53:18 -->