<?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 Puzzle 6</title>
	<atom:link href="http://joerawlings.com/blog/2010/11/java-puzzle-6/feed/" rel="self" type="application/rss+xml" />
	<link>http://joerawlings.com/blog/2010/11/java-puzzle-6/</link>
	<description>Software Engineer</description>
	<lastBuildDate>Sun, 06 Mar 2011 22:26:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: jrawlings</title>
		<link>http://joerawlings.com/blog/2010/11/java-puzzle-6/#comment-7</link>
		<dc:creator>jrawlings</dc:creator>
		<pubDate>Fri, 26 Nov 2010 16:23:01 +0000</pubDate>
		<guid isPermaLink="false">http://joerawlings.com/blog/?p=43#comment-7</guid>
		<description>The answer is (b), 17777 and 43878. This program doesn&#039;t say what you think it does and leading zeros can cause trouble. On line 3, the syntax highlighting gives it away that you are adding 12345 with the long 5432. On line 4, the leading 0 on &#039;01234&#039; makes it an octal literal equal to 1,234 (base 8 ) or 668 in decimal.

The moral is to always use an uppercase el (L) for long literals and never use lowercase el as a variable name. Also, never precede an int literal with 0 unless you want to express it in octal (base 8 )</description>
		<content:encoded><![CDATA[<p>The answer is (b), 17777 and 43878. This program doesn&#8217;t say what you think it does and leading zeros can cause trouble. On line 3, the syntax highlighting gives it away that you are adding 12345 with the long 5432. On line 4, the leading 0 on &#8217;01234&#8242; makes it an octal literal equal to 1,234 (base 8 ) or 668 in decimal.</p>
<p>The moral is to always use an uppercase el (L) for long literals and never use lowercase el as a variable name. Also, never precede an int literal with 0 unless you want to express it in octal (base 8 )</p>
]]></content:encoded>
	</item>
</channel>
</rss>

