<?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>Interview Mantra &#187; Java</title>
	<atom:link href="http://www.interviewmantra.net/category/interview-questions/java/feed" rel="self" type="application/rss+xml" />
	<link>http://www.interviewmantra.net</link>
	<description>Your mantra to job success</description>
	<lastBuildDate>Thu, 29 Jul 2010 06:38:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Tata Technologies Looking for C/C++/Java programmers</title>
		<link>http://www.interviewmantra.net/2010/06/tata-technologies-c-cpp-java-programmers.html</link>
		<comments>http://www.interviewmantra.net/2010/06/tata-technologies-c-cpp-java-programmers.html#comments</comments>
		<pubDate>Fri, 04 Jun 2010 13:05:04 +0000</pubDate>
		<dc:creator>guest</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Job Search]]></category>

		<guid isPermaLink="false">http://www.interviewmantra.net/?p=1285</guid>
		<description><![CDATA[Tata Technologies Ltd. is hiring 40 professionals for Pune Location.  Headquartered in Singapore,   Tata Technologies Limited is a leader in engineering services outsourcing with over 4,000 highly skilled employees. Do you meet the following criteria? If yes, send your resume asap to sridhar@interviewmantra.net Possess 2 to 5 years of IT Experience. Education &#8211; BE [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.tatatechnologies.com/">Tata Technologies Ltd.</a> is hiring 40 professionals for Pune Location.  Headquartered in Singapore,   Tata Technologies Limited is a leader in engineering services outsourcing with over  4,000 highly skilled employees.</p>
<p>Do you meet the following criteria? If yes, send your resume asap to <a href="mailto:sridhar@interviewmantra.net?subject=Job Application for Tata Technologies">sridhar@interviewmantra.net</a></p>
<ul>
<li>Possess 2 to 5 years of IT Experience.</li>
<li>Education &#8211; BE or MCA.</li>
<li>Programming experience  in <strong>C/C++/</strong><strong> Java</strong> (Swings, Servlets, JSP, strong OO skills).</li>
<li>Knowledge of Teamcenter  ITK programming is a huge advantage.</li>
<p><a href="mailto:sridhar@interviewmantra.net?subject=Job Application for Tata Technologies"><img title="Apply Job" src="http://www.interviewmantra.net/wp-content/uploads/2010/06/apply_now.jpg" alt="" width="50" height="50" /></a>
</ul>
<p><em>Note that this requirement is for Indian National only. </em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.interviewmantra.net/2010/06/tata-technologies-c-cpp-java-programmers.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Core Java interview questions</title>
		<link>http://www.interviewmantra.net/2010/04/core-java-interview-questions.html</link>
		<comments>http://www.interviewmantra.net/2010/04/core-java-interview-questions.html#comments</comments>
		<pubDate>Sun, 11 Apr 2010 05:54:56 +0000</pubDate>
		<dc:creator>Sridhar Jammalamadaka</dc:creator>
				<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.interviewmantra.net/?p=1143</guid>
		<description><![CDATA[Can you explain the OOPS concepts – Encapsulation, Abstraction, Inheritance and Polymorphism? How can you achieve Polymorphism using Java? What are access modifiers? What does the access modifier &#8216;protected&#8217; signify? What is the difference between an abstract class and an interface? Can you describe a business scenario where you will have to choose between an [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>Can you explain the OOPS concepts – Encapsulation, Abstraction, Inheritance and Polymorphism?</li>
<li>How can you achieve Polymorphism using Java?</li>
<li>What are access modifiers?</li>
<li>What does the access modifier &#8216;protected&#8217; signify?</li>
<li>What is the difference between an abstract class and an interface?</li>
<li>Can you describe a business scenario where you will have to choose between an abstract class and an interface?</li>
<li>What are Collections in Java?</li>
<li>Can you name few Collection classes in Java?</li>
<li>What is the difference between an ArrayList and a Vector?</li>
<li>What is the difference between HashMap and a HashTable?</li>
<li>What is the use of Properties class in Java?</li>
<li>Explain how to use Java class StringTokenizer</li>
<li>What is the difference between .equals and == operator?</li>
<li>Can we declare a try block with a finally block and without a catch?</li>
<li>How does the order of exceptions in catch block matter?</li>
<li>How to write a user defined Exception?</li>
<li>What is the difference between an Error and an Exception?</li>
</ol>
<p>These questions were compiled by <a href="http://rocksolutions.wordpress.com/">Rakesh Kumar Vashisht</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.interviewmantra.net/2010/04/core-java-interview-questions.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java Interview Questions @ Amdocs</title>
		<link>http://www.interviewmantra.net/2010/03/java-interview-questions-amdocs.html</link>
		<comments>http://www.interviewmantra.net/2010/03/java-interview-questions-amdocs.html#comments</comments>
		<pubDate>Tue, 16 Mar 2010 12:00:56 +0000</pubDate>
		<dc:creator>Sridhar Jammalamadaka</dc:creator>
				<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[amdocs]]></category>

		<guid isPermaLink="false">http://www.interviewmantra.net/?p=926</guid>
		<description><![CDATA[Here are the questions asked in an interview with the company Amdocs, calling for Java developers with 2 to 5 years of IT experience. Java Questions: Where and why do we use the synchronized keyword? Give an example of polymorphism in java with code? What are the classes and interfaces used in Collection framework, briefly [...]]]></description>
			<content:encoded><![CDATA[<p>Here are the questions asked in an interview with the company <a href="http://www.amdocs.com/">Amdocs</a>, calling for Java developers with 2 to 5 years of IT experience.</p>
<h2>Java Questions:</h2>
<ol>
<li>Where and why do we use the <em>synchronized </em>keyword?</li>
<li>Give an example of polymorphism in java with code?</li>
<li>What are the classes and interfaces used in Collection framework, briefly explain them?</li>
<li>What are inner classes and why do we need them?</li>
<li>Do we name the java file using the Outer class’s name?</li>
<li>How to access the inner class?</li>
<li>Why do we need an abstract class from design perspective?</li>
<li>Difference between keywords and variables?</li>
<li>What is the deployment process of your application?</li>
<li>Explain MVC?</li>
<li>What are the components in your application that correspond to Model View and Controller components?</li>
<li>Which application server do you use to deploy your app?</li>
<li>What database do you use and how do you connect your java application to the database?</li>
<li>What is JNDI?</li>
<li>What is EJB?</li>
<li>What do u mean by serialization? How do we achieve it in java?</li>
</ol>
<p>Amdocs, Pune is doing a lot of hiring these days. In case you have attended an interview with Amdocs recently, please post the questions that were asked in comments. Let&#8217;s share interview questions, experiences and make our lives easier.</p>
<p><em>Feel free to comment the answers to these questions.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.interviewmantra.net/2010/03/java-interview-questions-amdocs.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>You may be working for the Sun, but you are no exception</title>
		<link>http://www.interviewmantra.net/2009/11/you-may-be-working-for-sun-but-you-are.html</link>
		<comments>http://www.interviewmantra.net/2009/11/you-may-be-working-for-sun-but-you-are.html#comments</comments>
		<pubDate>Wed, 04 Nov 2009 02:39:00 +0000</pubDate>
		<dc:creator>Sridhar Jammalamadaka</dc:creator>
				<category><![CDATA[Career Issues]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/2009/11/you-may-be-working-for-the-sun-but-you-are-no-exception/</guid>
		<description><![CDATA[The world&#8217;s largest business software company, Oracle&#8217;s recent deal for acquisition of Sun Microsystems is alleged to be deliberately delayed by Oracle. According to few legal experts, some legal weak points in the Sun deal are in favor or Oracle Corporation. Oracle is alleged of misusing those points to save more money out of the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://3.bp.blogspot.com/_bYjWHxiThyA/SwPZnBF9yfI/AAAAAAAABl8/_6lWKNRhIeU/s1600/the-sun.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5405403242106309106" style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 200px; height: 200px;" src="http://3.bp.blogspot.com/_bYjWHxiThyA/SwPZnBF9yfI/AAAAAAAABl8/_6lWKNRhIeU/s320/the-sun.jpg" border="0" alt="the sun rays dancing" /></a> The world&#8217;s largest business software company, Oracle&#8217;s recent deal for acquisition of Sun Microsystems is alleged to be <a id="in4l" title="deliberately delayed by Oracle" href="http://dealbook.blogs.nytimes.com/2009/10/22/weak-points-of-sun-deal-come-out-in-europe/">deliberately delayed by Oracle</a>. According to few legal experts, some legal weak points in the Sun deal are in favor or Oracle Corporation. Oracle is alleged of misusing those points to save more money out of the deal.</p>
<p>Sun Microsystems is famous for owning the popular Java platform and MySQL database software.<span id="more-326"></span></p>
<p>Sun Microsystems, which is already in bad shape, is subject to more pressure now. Owing to the stock implosion and other factors that are not in favor, Sun microsystems has announced to <a id="z1hn" title="lay off up to 3,000 employees" href="http://dealbook.blogs.nytimes.com/2009/10/21/awaiting-green-light-for-deal-sun-cuts-jobs/">lay off up to 3,000 employees</a> in the coming months.</p>
<p>Here is an excerpt of a <a id="eoem" title="comment posted" href="http://dealbook.blogs.nytimes.com/2009/10/22/weak-points-of-sun-deal-come-out-in-europe/#comment-328741">comment posted</a> by a person who claims to be an employee of Sun Microsystems :</p>
<blockquote><p>Pray for us poor Sun Employees…<br />
Mr. Billionaires, don’t you have a heart?, don’t you have a soul?, don’t you win enough money?<br />
Why do we have to suffer sadness, fear, layoff, over-indebtedness, family break, suicide…?<br />
Are we still pawns, numbers in 2009?<br />
We were proud of Sun Microsystems, we were proud of our Creativity, we were proud of our Team Spirit, we were proud of our Passion.</p>
<p>We were Human Beings&#8230;.</p></blockquote>
<p>This brings us back to the old discussion of job security in corporate companies. You may be working for the Sun Microsystems, but you are not an exception of being fired when it comes to business reasons.</p>
<p><em>Can&#8217;t anything be done to this attitude of the rich corporates? Can&#8217;t the government intervene and save the employees who work hard for the benefit of the company? Should employees always suffer for these corporate deals?</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.interviewmantra.net/2009/11/you-may-be-working-for-sun-but-you-are.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java SQL UNIX Interview for 2 year experienced @ AMDOCS</title>
		<link>http://www.interviewmantra.net/2009/08/amdocs-java-sql-unix-interview.html</link>
		<comments>http://www.interviewmantra.net/2009/08/amdocs-java-sql-unix-interview.html#comments</comments>
		<pubDate>Sun, 16 Aug 2009 17:53:00 +0000</pubDate>
		<dc:creator>Sridhar Jammalamadaka</dc:creator>
				<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/2009/08/java-sql-unix-interview-for-2-yr-experienced-amdocs/</guid>
		<description><![CDATA[These questions were asked in a job posting at Amdocs, Pune. The job was for developers experienced in Java, SQL, UNIX. The interview lasted for 40 minutes. Answers to these questions would be posted soon. If you wish to answer any of these questions, please comment below, the Section Name, Question Number along with your [...]]]></description>
			<content:encoded><![CDATA[<p>These questions were asked in a job posting at <a href="http://www.amdocs.com/">Amdocs</a>, Pune. The job was for developers experienced in Java, SQL, UNIX. The interview lasted for 40 minutes. Answers to these questions would be posted soon. If you wish to answer any of these questions, please <a href="http://interviewmantra.net/2009/08/amdocs-java-sql-unix-interview.html#comments">comment below</a>, the Section Name, Question Number along with your Answer.</p>
<h2>General Questions:</h2>
<ol>
<li>Tell me about yourself?</li>
<li>Tell me about the project that you are currently working on?</li>
<li>What are the technologies used in your current project?</li>
<li>Why did you change your previous company?</li>
<li>Do you have any questions? (at the end of the interview)</li>
</ol>
<h2>Java Questions:</h2>
<ol>
<li>On a scale of 5, how do you rate yourself in Java?</li>
<li>What are the four pillars of Object Oriented Programming (OOPS)?</li>
<li>What is Encapsulation?</li>
<li>What is Abstraction?</li>
<li>What is the difference between Encapsulation and Abstraction?</li>
<li>What are access specifiers?</li>
<li>Explain each of the access specifiers: <em>public</em>, <em>default</em>, <em>protected</em> and <em>private</em>.</li>
<li>Is the <em>default</em> access specifier same as <em>protected</em>?</li>
<li>Can I access a <em>default</em> member from inside a Sub class?</li>
<li>Can I access a <em>protected</em> member from a Sub class outside the package of its Base class?</li>
<li>What is an anonymous class? Can you write code to define an anonymous class?</li>
<li>What is the difference between a <em>String</em> and a <em>StringBuffer</em>?</li>
<li>What is the output upon execution of the following code snippet?</li>
<pre class="brush: java;">String a = &quot;Hello&quot;;
StringBuffer b = new StringBuffer(&quot;Hello&quot;);

if(a.equals(b)){
 System.out.println(&quot;Inside A&quot;);
}
else{
 System.out.println(&quot;Inside B&quot;)
}
</pre>
<li>How to use a <em>StringTokenizer</em>?</li>
<li>What are Collections in Java?</li>
<li>What is the difference between a <em>Vector</em> and an <em>ArrayList</em>?</li>
<li>Can you write a program that emulates a <em>Linked List</em> in Java without using the class <em>LinkedList</em>?</li>
<li>What is a <em>thread</em> in Java?</li>
<li>What are the uses of <em>threads</em>?</li>
<li>What is a process in Java?</li>
</ol>
<h2>Java EE Questions:</h2>
<ol>
<li>Do you know Java EE?</li>
<li>On a scale of 5, how do you rate yourself in Java EE?</li>
<li>Do you know EJB?</li>
<li>What is Life Cycle of a Servlet?</li>
<li>What are the methods in the Class <em>GenericServlet</em>?</li>
<li>What is the difference between <em>GenericServlet</em> and <em>HttpServlet</em>?</li>
</ol>
<h2>SQL Questions:</h2>
<ol>
<li>On a scale of 5, how do you rate yourself in SQL?</li>
<li>What is DDL?</li>
<li>What is DML?</li>
<li>What is the difference between DDL and DML?</li>
<li>Assume there is a table by name Employee, that has columns emp_name, emp_id and salary.</li>
<p>Write a query that prints emp_name of the employee earning the maximum salary.</ol>
<h3>UNIX Questions:</h3>
<ol>
<li>On a scale of 5, how do you rate yourself in UNIX?</li>
<li>Explain the command <em>mv</em>?</li>
<li>Explain the command <em>cp</em>?</li>
<li>What is the difference between mv and cp?</li>
<li>How to use <em>grep</em> command?</li>
<li>What command do you use to see all the processes that are running in UNIX?</li>
<li>Do you know shell scripting?</li>
</ol>
<p>Read 15 more <a href="http://www.interviewmantra.net/2010/03/java-interview-questions-amdocs.html">Java interview questions asked in Amdocs</a>.</p>
<p>You may want to</p>
<h3><a href="http://interviewmantra.net/2009/08/amdocs-java-sql-unix-interview.html#comments">Answer these questions by commenting below</a></h3>
]]></content:encoded>
			<wfw:commentRss>http://www.interviewmantra.net/2009/08/amdocs-java-sql-unix-interview.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>How to Create an Executable Jar file</title>
		<link>http://www.interviewmantra.net/2009/07/create-executable-jar-file-java.html</link>
		<comments>http://www.interviewmantra.net/2009/07/create-executable-jar-file-java.html#comments</comments>
		<pubDate>Tue, 21 Jul 2009 11:11:00 +0000</pubDate>
		<dc:creator>Sridhar Jammalamadaka</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/2009/07/how-to-create-an-executable-jar-file/</guid>
		<description><![CDATA[SyntaxHighlighter.config.bloggerMode = true; SyntaxHighlighter.config.clipboardSwf ='http://alexgorbatchev.com/pub/sh/2.0.320/scripts/clipboard.swf';SyntaxHighlighter.all();Pre-requisites: JRE(any version above 1.2) JDK (any version above 1.2) This article demonstrates the creation of an executable jar file. This is a hands-on tutorial, I recommend you to follow the below mentioned steps practically instead of simply reading this tutorial. Step 1: Download Source Code (nodalo-src.zip) and Binary Classes (nodalo-bin.zip) [...]]]></description>
			<content:encoded><![CDATA[<p><script src='http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushPlain.js' type='text/javascript'></script><script type="text/javascript">SyntaxHighlighter.config.bloggerMode = true;
SyntaxHighlighter.config.clipboardSwf ='http://alexgorbatchev.com/pub/sh/2.0.320/scripts/clipboard.swf';SyntaxHighlighter.all();</script><strong>Pre-requisites:</strong><br />
<strong>JRE(any version above 1.2)</strong><br />
<strong>JDK (any version above 1.2)</strong></p>
<p>This article demonstrates the creation of an executable jar file. This is a hands-on tutorial, I recommend you to follow the below mentioned steps practically instead of simply reading this tutorial.</p>
<h3>Step 1:</h3>
<p>Download <a href="http://sites.google.com/site/sriavr/Home/nodalo-src.zip?attredirects=0">Source Code (nodalo-src.zip)</a> and <a href="http://sites.google.com/site/sriavr/Home/nodalo-bin.zip?attredirects=0">Binary Classes (nodalo-bin.zip)</a> of the sample Java Project used in this post. Extract the downloaded archive <em>nodalo-bin.zip</em> to Windows D: Drive (D drive optional, can be extracted to any folder).</p>
<p>The structure of the folder &#8216;nodalo-bin&#8217; would look like this:</p>
<pre class="brush:text ;gutter:false">
nodalo-bin
     |___com
          |__A.class
          |__B.class
          |__C.class

     |___foo
          |__D.class
</pre>
<p>There is a root directory &#8216;nodalo-bin&#8217;, which in turn has two directories &#8216;com&#8217; and &#8216;foo&#8217;. Package com contains classes A.class, B.class, C.class . Package foo contains class D.class .</p>
<p>Class B.class has the main method. Our aim is to create an executable jar file, name it nodalo.jar and run main method in the Java Class B.</p>
<h3>Step 2:</h3>
<p>Create a jar file nodalo.jar that has the directories com and foo in it.</p>
<p>Browse to the directory named &#8220;nodalo-bin&#8221; and execute the following command in Command Prompt or Terminal.</p>
<pre class="brush:text ;gutter:false">
D:\nodalo-bin> jar cvf nodalo.jar com foo
</pre>
<p>This command would create nodalo.jar</p>
<p>To view the contents of this jar file, execute:</p>
<pre class="brush:text  ;gutter:false">
D:\nodalo-bin>jar tf nodalo.jar
</pre>
<p>The following output would be shown:</p>
<pre class="brush:text ;gutter:false">
 META-INF/MANIFEST.MF
 com/
 com/A.class
 com/B.class
 com/C.class
 foo/
 foo/D.class
</pre>
<p>Note that META-INF folder and the file MANIFEST.MF were created on their own.</p>
<h3>Step 3:</h3>
<p>To execute this jar file, run command:</p>
<pre class="brush:text ;gutter:false">
D:\nodalo-bin>java -jar nodalo.jar
</pre>
<p>An error similar to the one below would result in the output:</p>
<pre class="brush:text ;gutter:false">
Failed to load Main-Class manifest attribute from nodalo.jar
</pre>
<h3>Step 4:</h3>
<p>This is because java does not know where to look for the main method. So we need to explicitly add a manifest file that tells JVM about the Class that contains main method in this Java project.</p>
<p>Create a new text file, name it <em>mainClass.txt</em> and put the following line of code in it:</p>
<pre class="brush:text ;gutter:false">
Main-Class: com.B
</pre>
<p>Save mainClass.txt in the nodalo-bin directory. The above line instructs JVM to look for main method in B.class</p>
<p>To merge this Manifest file with the one already existing in nodalo.jar, execute the command:</p>
<pre class="brush:text ;gutter:false">
D:\nodalo-bin> jar cmf mainClass.txt nodalo.jar com foo
</pre>
<p>Now, try executing the jar again:</p>
<pre class="brush:text ;gutter:false">
D:\nodalo-bin>java -jar nodalo.jar
</pre>
<p>The above command should result in output:</p>
<pre class="brush:text ;gutter:false">
Inside Class D
Inside Class C
Inside Class B
Inside Class A
</pre>
<p>Great! We have successfully created an executable jar file. Please comment below, if this tutorial helped you.</p>
<p>Read more about <a href="http://en.wikipedia.org/wiki/Manifest_file">Manifest File in Java</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.interviewmantra.net/2009/07/create-executable-jar-file-java.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to install apache ant</title>
		<link>http://www.interviewmantra.net/2009/07/how-to-install-apache-ant.html</link>
		<comments>http://www.interviewmantra.net/2009/07/how-to-install-apache-ant.html#comments</comments>
		<pubDate>Tue, 14 Jul 2009 11:45:00 +0000</pubDate>
		<dc:creator>Sridhar Jammalamadaka</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/2009/07/how-to-install-apache-ant/</guid>
		<description><![CDATA[I recorded a video that demonstrates how to install Apache Ant Software on a windows machine. Apache Ant is a java based build tool. You may read the text instructions for installing ant. You may want to download Apache Ant Software.]]></description>
			<content:encoded><![CDATA[<p>I recorded a video that demonstrates how to install <a href="http://ant.apache.org/">Apache Ant Software</a><br />
on a windows machine.</p>
<div><object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/XJmndRfb1TU&#038;hl=en&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/XJmndRfb1TU&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object> </div>
<p>Apache Ant is a java based build tool. You may read the text <a href="http://ant.apache.org/manual/install.html">instructions for installing ant</a>. You may want to <a href="http://ant.apache.org/bindownload.cgi">download Apache Ant Software</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.interviewmantra.net/2009/07/how-to-install-apache-ant.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java Development Kit Installation Guide</title>
		<link>http://www.interviewmantra.net/2008/09/java-development-kit-installation-guide.html</link>
		<comments>http://www.interviewmantra.net/2008/09/java-development-kit-installation-guide.html#comments</comments>
		<pubDate>Thu, 25 Sep 2008 07:52:00 +0000</pubDate>
		<dc:creator>Sridhar Jammalamadaka</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/2008/09/java-development-kit-installation-guide/</guid>
		<description><![CDATA[Target Audience: Computer Science engineers, Software techies and java newbies. Content: This is a Google doc presentation that demonstrates the installation of (JDK-Tiger)Java Development Kit 1.5 for Windows. To see this presentation in full screen or in a larger view click on the following link: http://docs.google.com/Presentation?id=dg8zg9kx_136cdt3qmgn Tip: Look for speaker notes of the presentation for [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Target Audience:</strong> Computer Science engineers, Software techies and java newbies.<br />
<strong>Content:</strong> This is a Google doc presentation that demonstrates the installation of (JDK-Tiger)Java Development Kit 1.5 for Windows.</p>
<p>To see this presentation in full screen or in a larger view click on the following link: <a href="http://docs.google.com/Presentation?id=dg8zg9kx_136cdt3qmgn">http://docs.google.com/Presentation?id=dg8zg9kx_136cdt3qmgn</a><br />
Tip: Look for speaker notes of the presentation for detailed description of the slides</p>
<p><iframe src="http://docs.google.com/present/embed?id=dg8zg9kx_136cdt3qmgn" frameborder="0" width="410" height="342"></iframe></p>
<p>Welcome to this presentation on Installation of Java development Kit !. As a beginner in Java, it took me few days to discover the basics of java installation. I prepared this presentation to save reader&#8217;s precious time in understanding the setup of jdk, PATH and CLASSPATH variables. Note that the scope of this presentation is J2SE (Java 2 Standard Edition 5.0) only and does not include J2EE(Java 2 Enterprise Edition).<br />
This presentation guides you through the step by step procedure to download and install Java SDK (also called JDK) on a windows machine. After following the steps given in this presentation you would know how to compile and run programs using Java.Java SDK installation is helpful only if you wish to code using java. For running java applications, Java Run time environment (JRE) is sufficient. This presentation would have served its purpose if you are able to run your java programs using command prompt at the end of going through the slides. This presentation also shows the screenshots of all the steps required for installing java development kit on windows.</p>
<p>Agenda of slides:<br />
<strong>Slide#2</strong> introduces the reader to Java, JDK and JRE. Also briefs about the difference between JRE and JDK.<br />
<strong>Slide#3 </strong> shows where to look for the latest download of Java Development Kit 5.0<br />
<strong>Slide#4</strong> shows the thumbnail of the downloaded installable file. Also briefs about the contents of JDK kit.<br />
<strong>Slide#5</strong> shows the Custom setup step of JDK installation. You can choose the folder where you wish to install JDK in the step shown in the slide.<br />
<strong>Slide#6</strong> explains the difference between J2SE and J2EE. Gives a mention about ECLIPSE, world&#8217;s favourite IDE for JAVA.<br />
<strong>Slide#7 </strong>shows the Custom setup step of JRE installation. Also briefs about basic steps of java compilation and execution.<br />
<strong>Slide#8</strong> shows the progress screen of JRE setup. Also briefs about jar format in java and the advantages of third party java api&#8217;s.<br />
<strong>Slide#9</strong> shows the java plugin registration for internet explorer and other browers. Also briefs about Java applets and Java FX.<br />
<strong>Slide#10</strong> shows the final screen of installation of java. Also briefs about the significance of PATH and CLASSPATH environment variables.<br />
<strong>Slide#11</strong> demonstrates how to modify environment variables in windows. Also briefs about javadoc and other command line tools that come along with java compiler in JDK.<br />
<strong>Slide#12</strong> demonstrates how to set PATH and CLASSPATH environment variables for JAVA.<br />
<strong>Slide#13</strong> shows how to test javac and java tools on command prompt.<br />
<strong>Slide#14</strong> demonstrates how to write a hello world program in java. Also shows how to compile and execute HelloWorld.java</p>
<p>Let me know what you think about this slide so that we can improve it. Contact me at j_sridharr at yahoo dot co dot in. For feedback regarding this blog write to feedback@nodalo.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.interviewmantra.net/2008/09/java-development-kit-installation-guide.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inheritance concept in Log4j</title>
		<link>http://www.interviewmantra.net/2008/07/inheritance-concept-in-log4j.html</link>
		<comments>http://www.interviewmantra.net/2008/07/inheritance-concept-in-log4j.html#comments</comments>
		<pubDate>Fri, 04 Jul 2008 16:24:00 +0000</pubDate>
		<dc:creator>Sridhar Jammalamadaka</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/2008/07/inheritance-concept-in-log4j/</guid>
		<description><![CDATA[// Target Audience: Enterprise Java programmers, beginners in Apache Log4j tool. Content: This article illustrates the inheritance concept of the world&#8217;s most popular Java Logging Framework, Log4j. This blog posts explains one of the nice features of Log4j that caught my eyes. Author: Sridhar Jammalamadaka By the way, Log4j is an opensource tool by Apache [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript">// <![CDATA[
SyntaxHighlighter.config.bloggerMode = true;
SyntaxHighlighter.config.clipboardSwf ='http://alexgorbatchev.com/pub/sh/2.0.320/scripts/clipboard.swf';
SyntaxHighlighter.all();
// ]]&gt;</script> <script src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushJava.js" type="'text/javascript'"></script> <script src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushPlain.js" type="'text/javascript'"></script></p>
<p><strong>Target Audience:</strong><br />
Enterprise Java programmers, beginners in Apache Log4j tool.<br />
<strong>Content:<br />
</strong>This article illustrates the inheritance concept of the world&#8217;s most popular Java Logging Framework, Log4j.    This blog posts explains one of the nice features of Log4j that caught my eyes.<br />
<strong>Author:</strong> Sridhar Jammalamadaka</p>
<p>By the way, Log4j is an opensource tool by Apache software foundation (which means its free!).    Log4j is a unanimous choice for a logging framework among developers.   Log4j finds its use in stand-alone and web-based applications Java.</p>
<p>A practical example is given below to illustrate this concept. This examples uses files A.java, B.java, C.java, log4j.properties</p>
<p><strong><span style="font-size:130%;">Inheritance in logging using Log4j</span></strong><br />
Consider Class A, B, C. Class A is in package com, Class B, C are in package com/foo</p>
<pre class="brush:java">/*
************************************************************
Index: com/A.java
************************************************************
*/

package com;
import org.apache.log4j.Logger;
public class A {

 // Give Classname.class as input to getLogger method
 private static Logger logger = Logger.getLogger(A.class);

 public A() {
  logger.info("Inside class A constructor");
  this.aMethod();
 }
 public void aMethod() {
  logger.debug("Inside aMethod()");
 }
}</pre>
<pre class="brush:java">/*
************************************************************
Index: com/foo/B.java
************************************************************
*/

package com.foo;
import org.apache.log4j.Logger;

public class B {
 private static Logger logger = Logger.getLogger(B.class);
 public B() {
  logger.info("Inside Class B constructor");
  this.bMethod();
 }
 public void bMethod() {
  logger.debug("Inside bMethod()");
 }
}</pre>
<pre class="brush:java">/*
************************************************************
Index: com/foo/C.java
************************************************************
*/

package com.foo;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import com.A;

public class C {
 private static Logger logger = Logger.getLogger(C.class);
 public C() {
  logger.info("Inside class C constructor");
  this.cMethod();
 }

 public void cMethod() {
  logger.debug("Inside cMethod()");
 }

 public static void main(String args[]) {
  PropertyConfigurator.configure("log4j.properties");
  A a = new A();
  B b = new B();
  C c = new C();
 }
}</pre>
<p><strong>Index:</strong> log4j.properties<br />
=====================================================================<br />
<span style="color:#009900;"><span style="color:#006600;">#This sets the rootLogger Level to DEBUG and adds ConsoleAppender</span><br />
</span><span style="color:#990000;"><strong>log4j.rootLogger</strong></span>=debug,CONSOLE<br />
<span style="color:#006600;">############ Settings for CONSOLE Appender #################<br />
</span><span style="color:#990000;"><strong>log4j.appender.CONSOLE</strong></span>=org.apache.log4j.ConsoleAppender<br />
<span style="color:#006600;">#Set the Layout for CONSOLE Appender</span><br />
<span style="color:#990000;"><strong>log4j.appender.CONSOLE.layout</strong></span>=org.apache.log4j.PatternLayout<br />
<span style="color:#006600;">#Set the Conversion pattern for printing logs</span><br />
<span style="color:#990000;"><strong>log4j.appender.CONSOLE.layout.ConversionPattern</strong></span>=%d{HH:mm:ss,SSS} %-5p %c &#8211; %m%n</p>
<p>Above properties file would configure logging levels in such a way that only debug logs or above would be displayed.    The logs are configured to be shown on the console or command prompt where this java program is run.</p>
<p><strong>Output would be:</strong></p>
<pre class="brush:plain">  18:19:01,854 INFO com.A - Inside class A constructor
  18:19:01,854 DEBUG com.A - Inside aMethod()
  18:19:01,870 INFO com.foo.B - Inside Class B constructor
  18:19:01,870 DEBUG com.foo.B - Inside bMethod()
  18:19:01,870 INFO com.foo.C - Inside class C constructor
  18:19:01,870 DEBUG com.foo.C - Inside cMethod()</pre>
<p>If we add a line of code to our log4j.properties<br />
<span style="color:#990000;"><strong>log4j.logger.com.foo</strong></span>=off</p>
<p>Logging is switched off in all the classes contained in the package, <strong>com.foo</strong>, i.e., Class B, Class C   . This simply means that all the log statements written in classes B, C would not appear in the output.</p>
<p><strong>Output would be:</strong></p>
<pre class="brush:plain">  18:23:37,478 INFO com.A - Inside class A constructor
  18:23:37,478 DEBUG com.A - Inside aMethod()</pre>
<p>Let us say we added below code snippet instead of the previous one mentioned to our log4j.properties<br />
<span style="color:#990000;"><strong>log4j.logger.com</strong></span>=off</p>
<p>Let us see what the output is. Hey there is no log statement at all! We switched off logging of package com right?<br />
Which means logging should be switched off only in the classes directly under com folder , i.e, Class A</p>
<p>But why did logging in Class B, Class C which fall under package com.foo also get turned off??</p>
<p>Now this is the inheritance concept in Log4j. Until explicitly specified not to allow inheritance, the logging properties set to a package folder  would apply to all the sub packages under it. So, the logging properties applied to com package would be inherited to com.foo package too.</p>
<p>I hope this tutorial was of some use to you and it did not confuse you further, please comment below your feedback.</p>
<p><strong>Next Steps:</strong> <a href="http://logging.apache.org/log4j/1.2/download.html">Download Log4j</a>,    <a href="http://logging.apache.org/log4j/1.2/manual.html">Learn how to use Log4j</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.interviewmantra.net/2008/07/inheritance-concept-in-log4j.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learn JAVA and get an edge over others</title>
		<link>http://www.interviewmantra.net/2007/11/learn-java-and-get-edge-over-others.html</link>
		<comments>http://www.interviewmantra.net/2007/11/learn-java-and-get-edge-over-others.html#comments</comments>
		<pubDate>Thu, 29 Nov 2007 14:52:00 +0000</pubDate>
		<dc:creator>Sridhar Jammalamadaka</dc:creator>
				<category><![CDATA[Freshers]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/2007/11/learn-java-and-get-an-edge-over-others/</guid>
		<description><![CDATA[This post is an attempt to clarify basic questions about java to beginners. No question is a silly question. Why JAVA? What is JAVA? What are the versions of JAVA, Which one of them should I learn? How do I learn JAVA? Any extra material to learn JAVA better? How many days would I need [...]]]></description>
			<content:encoded><![CDATA[<p>This post is an attempt to clarify basic questions about java to beginners. No question is a silly question.<br />
<a name="top"> </a></p>
<ol>
<li><a href="#whyjava">Why JAVA? </a></li>
<li><a href="#whatjava">What is JAVA?</a></li>
<li><a href="#versions">What are the versions of JAVA, Which one of them should I learn?</a></li>
<li><a href="#howjava">How do I learn JAVA?</a></li>
<li><a href="#extra">Any extra material to learn JAVA better?</a></li>
<li><a href="#duration">How many days would I need to learn JAVA?</a></li>
<li><a href="#prereqs">What should I have already known before learning JAVA?</a></li>
<li><a href="#corefocus">Which topics should I focus on in JAVA 2 Special Edition?</a></li>
<li><a href="#certifications">What are Certifications in JAVA?</a></li>
<li><a href="#prepscjp">How to prepare for SCJP(Sun Certified JAVA professional) certification?</a></li>
<li><a href="#j2ee">What is J2EE now?</a></li>
<li><a href="#more"> Give me more details about SCJP</a></li>
</ol>
<p><a name="whyjava"><strong>1. Why JAVA?</strong></a><br />
If you aspire to become a software engineer, learning java is the best thing that you can do. Knowledge in JAVA could fetch you a software job. Or if you already are working in a software company, it would give you an edge over others. It would help new joinees clear the initial training programmes conducted at the company.<br />
<a href="#top"><span>Back to top</span></a></p>
<p><a name="whatjava"><strong>2. What is JAVA?</strong></a><br />
It is a programming language used for developing web-based and stand-alone applications. You can think of it as a tool to develop all the graphical user stuff like buttons, drop downs and menus and interactive stuff on the web. It is a hot technology that is very much in demand in the current IT market. You must have noticed internet pages ending with .jsp . They are Java Server Pages. So next time when you see jsp on page address, you  know that the website uses JAVA technology.<br />
Java transformed the web and created waves. It came to existance in 1995. It was made to support embedded systems. It was not succesful in embedded systems but it attracted a growing World wide web. You must have heard some rumours that JAVA may die soon, but owing to its features and object oriented concepts, JAVA is here to stay.<br />
<a href="#top"><span>Back to top</span></a></p>
<p><a name="versions"><strong>3. What are the versions of JAVA, Which one of them should I learn?</strong></a><br />
Java Standard EditionJava Enterprise EditionJava Mobile EditionJava FX<br />
As a beginner you are concerned only about JAVA standard edition. Even in that there are many versions such as<br />
J2SE 6.0<br />
J2SE 5.0<br />
J2SE 1.4.2<br />
J2SE 1.3.1</p>
<p>J2SE 6.0 is the latest one, but as a beginner I would recommend you to start with J2SE 1.4.2 which is the most widely used one.<br />
<a href="#top"><span>Back to top</span></a></p>
<p><a name="howjava"><strong>4. How do I learn JAVA?</strong></a><br />
I recommend you to join a long term Sun certified computer institute that teaches Java (NIIT /SSI if you are in india). For all those wondering what is Sun doing here, Sun Microsystems is the organisation behind Java platform. They develop Java and put it on web for free download. They earn through the money that comes from certification courses and training. Sun Microsystems offers many certification courses. I will tell in-detail about certifications in the coming questions.<br />
You can even find introduction of JAVA in Sun Microsystems site, which you can easily find by googling, that would only help your learning.<br />
<a href="#top"><span>Back to top</span></a></p>
<p><a name="extra"><strong>5. Any extra material to learn JAVA better?</strong></a><br />
If you wish to supplement your knowledge that you get from a training institute &#8220;after&#8221; finishing Core JAVA course, you can read &#8220;Thinking in JAVA by Bruce eckel&#8221; . This book is NOT for beginners. If you are a beginner, try &#8220;Head First Java, Your Brain on Java &#8211; A Learner&#8217;s Guide&#8221; by Bert Bates, Kathy Sierra<br />
<a href="#top"><span>Back to top</span></a></p>
<p><a name="duration"><strong>6. How many days would I need to learn JAVA?</strong></a><br />
In order to learn the basics of Core Java you would require 3 months and if you take a short term course, I believe it would take 3 weeks to grasp the concepts. If you wish to learn and get SCJP(Sun Certified Java Professional) certification you will need 3-6 months of study and practice.<br />
<a href="#top"><span>Back to top</span></a></p>
<p><a name="prereqs"><strong>7. What should I have already known before learning JAVA?</strong></a><br />
You should know well any of the procedural programming lanugages like C language. Acquaintance with Control statements, Syntax of statements and expressions, Scope rules, Functions, call by value, data types in C language is a must.<br />
Knowledge of C++ is a great plus, not mandatory though. In C++, acquaintance with object oriented programming concepts, classes, Inheritance, Overloading concepts would help you learn Java better.<br />
Java is an object oriented language and shares a few similarities with C++. Java is all about classes and objects. So good knowledge of object oriented concepts would help you learn Java a lot quicker.<br />
<a href="#top"><span>Back to top</span></a></p>
<p><a name="corefocus"><strong>8. Which topics should I focus on in JAVA 2 Special Edition?</strong></a><br />
Object Oriented conepts: Classes and objects, Interfaces, Inheritance, Abstract classes, access modifiers, data types, variables, static variables, Java Beans naming standards, packages, invoking and using javac compiler, debugging java code, Exceptions, Arrays, Constructors, overloading, String class, Input/Output streams, AWT, basics of swings, applets, collection classes and utilities.<br />
<a href="#top"><span>Back to top</span></a></p>
<p><a name="certifications"><strong>9. What are Certifications in JAVA?</strong></a><br />
Certifications are special online tests conducted by the companies owning any technology. This certifications are words of promise that beholder of that certification would have sound knowledge in that technology. Sun certifications are highly valued in software organisations.</p>
<p>To name few of certifications that Sun MicroSystems has to offer:<br />
SCJA(Sun Certified JAVA Associate)<br />
SCJP(Sun Certified JAVA Programmer)<br />
SCJD(Sun Certified JAVA Developer)</p>
<p>SCJA is too basic and is not valued as much as SCJP. I recommend a beginner to aim for SCJP. SCJD is advanced certification and it is not for beginners. For SCJD you require to have SCJP certification. Few years of experience would make you fit for SCJD.<br />
<a href="#top"><span>Back to top</span></a></p>
<p><a name="prepscjp"><strong>10. How to prepare for SCJP(Sun Certified JAVA professional) certification?</strong></a><br />
After finishing Core java course in a good computer training institute. Ideally with 3 months of practise and &#8220;Sun Certified Java Programmer for JAVA 5 by Kathy sierra and Berty Bates&#8221; would be the best book in the market to achieve your goal.<br />
<a href="#top"><span>Back to top</span></a></p>
<p><a name="j2ee"><strong>11. What is J2EE now?</strong></a><br />
It is continuation of J2SE . J2EE is used for preparing server pages where as J2SE is used for preparing client pages and applications. There is Sun Certified Web Component Developer (SCWCD)) certification for J2EE. However you need to be an SCJP before you can write SCWCD.<br />
<a href="#top"><span>Back to top</span></a></p>
<p><a name="more"><strong>12. More details about  SCJP</strong></a>:</p>
<p>SCJP has currently three options : SCJP 6, SCJP 1.5 and SCJP 1.4. SCJP 6 is the latest one added for testing JAVA version 6, I would recommend SCJP 1.5 as java version 6 is very new one, so it may be tough to get coaching or material on that test. There are upgrade exams for those people who wish to upgrade their certification. For example let us say Mr.XYZ is a certified SCJP 1.4 programmer. He wishes to get SCJP 1.5 he need pay as much required for SCJP 1.5. Fee would be less, apart from that syllabus would be less.</p>
<p>Details of <span>Sun Certified Programmer for the Java Platform, Standard Edition 5.0 (CX-310-055) are as follows:<br />
</span></p>
<ul>
<li>Delivered at: Authorized Worldwide Prometric Testing Centers (<a href="http://www.prometric.com/">http://www.prometric.com/</a>)</li>
<li>Exam type: Multiple choice and drag and drop</li>
<li>Number of questions: 72</li>
<li>Pass score: 59% (43 of 72 questions)</li>
<li>Time limit: 175 minutes</li>
<li>Cost: 200$ (may change see below link for latest price) <a href="http://www.sun.com/training/catalog/courses/CX-310-055.xml">http://www.sun.com/training/catalog/courses/CX-310-055.xml</a></li>
<li>In Indian rupees around 4000. May vary from place to place within India. You can even get discount in some centers.</li>
<li>Syllabus/Objectives for SCJP 1.5 is available at <a href="http://www.sun.com/training/catalog/courses/CX-310-055.xml">http://www.sun.com/training/catalog/courses/CX-310-055.xml</a>All the best! Help me improve this article. Feel free to comment or mail me at j_sridharr(at)yahoo(dot)co(dot)in
<p><a href="#top"><span>Back to top</span></a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.interviewmantra.net/2007/11/learn-java-and-get-edge-over-others.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
