<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Java Interview Questions &#187; Java Comments</title>
	<atom:link href="http://www.bestjavainterviewquestions.com/category/java-interview-questions/java-comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bestjavainterviewquestions.com</link>
	<description>Java Interview Questions &#124; Core Java Interview Questions &#124; Advanced Java Interview Questions &#124; EJB Interview Questions &#124; J2EE Interview Questions &#124; Hibernate Interview Questions</description>
	<lastBuildDate>Fri, 30 Jul 2010 06:00:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Explain Java Comments</title>
		<link>http://www.bestjavainterviewquestions.com/explain-java-comments/</link>
		<comments>http://www.bestjavainterviewquestions.com/explain-java-comments/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 16:29:36 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[Java Comments]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/?p=351</guid>
		<description><![CDATA[Q) Define Java Comments? There are 3 types of comments in JAVA. a) Single Line Comments: This Comments start with &#8216;//&#8217;. For Ex: // This is a single line comment for only one line b) Multi-Line Comments: This Comments starts with &#8216; /* &#8216; and ends with &#8216; */ &#8216;. For Ex: /* &#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;This [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Q) Define Java Comments?</strong></p>
<p>There are 3 types of <strong>comments</strong> in JAVA.</p>
<p>a) <strong><span style="text-decoration: underline;">Single Line Comments:</span></strong><br />
This Comments start with &#8216;//&#8217;.</p>
<p>For Ex: // This is a single line comment  for only one line</p>
<p>b) <strong><span style="text-decoration: underline;">Multi-Line Comments:</span></strong><br />
This Comments starts with &#8216; /* &#8216; and ends with &#8216; */ &#8216;.<br />
For Ex:<br />
/*<br />
&#8212;&#8212;&#8212;&#8212;&#8212;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;This is a Multiple line Comments<br />
&#8212;&#8212;&#8212;&#8212;&#8212;This are also called non executable statements means not executed by java compiler<br />
*/</p>
<p>c) <strong><span style="text-decoration: underline;">Java Documentation Comments:</span></strong><br />
This Comment Starts With &#8216;/**&#8217; and ends with &#8216;*/&#8217;;<br />
For Ex:</p>
<p>/**<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;-These are called Java Documentation Comments.<br />
&#8212;&#8212;&#8212;&#8212;&#8211;This comments are useful to create a &#8220;.html files&#8221; called &#8220;API documents&#8221; from a &#8220;.java&#8221; program using &#8220;<strong><span style="text-decoration: underline;">Javadoc Compiler</span></strong>&#8220;.<br />
*/</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li><a href="http://www.bestjavainterviewquestions.com/difference-between-get-and-head-request-methods/" title="Difference between GET and HEAD request methods"><img src="Array" alt="Difference between GET and HEAD request methods" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/session-tracking-example-using-servlets/" title="Session Tracking Example using Servlets"><img src="Array" alt="Session Tracking Example using Servlets" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/what-is-unicode-system/" title="What is unicode System"><img src="Array" alt="What is unicode System" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/url-connection-class/" title="URL Connection Class"><img src="Array" alt="URL Connection Class" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/can-we-call-destroy-method-on-servlets-from-service-method/" title="Can we call destroy() method on servlets from service method"><img src="Array" alt="Can we call destroy() method on servlets from service method" /></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/explain-java-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
