<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;CEECQnw9fSp7ImA9WhRbFUk.&quot;"><id>tag:blogger.com,1999:blog-1884867013769212760</id><updated>2012-02-06T07:37:43.265-08:00</updated><title>Java Interview Questions</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://javatechies.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://javatechies.blogspot.com/" /><author><name>Jaya</name><uri>http://www.blogger.com/profile/14528596387062100027</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/blogspot/AAqfp" /><feedburner:info uri="blogspot/aaqfp" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;AkcDQHgyeyp7ImA9WhRbEUw.&quot;"><id>tag:blogger.com,1999:blog-1884867013769212760.post-6200629589690272581</id><published>2010-11-09T07:18:00.000-08:00</published><updated>2012-02-01T09:41:11.693-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-01T09:41:11.693-08:00</app:edited><title>Java Interview Question</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/-4Fxkw3TJiRhvhl6PWyza6MB030/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-4Fxkw3TJiRhvhl6PWyza6MB030/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/-4Fxkw3TJiRhvhl6PWyza6MB030/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-4Fxkw3TJiRhvhl6PWyza6MB030/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/06/java-interview-questions-2.html" style="color: blue;"&gt;Next &amp;nbsp;&amp;gt;&amp;gt;&lt;/a&gt;&lt;/b&gt;&lt;script type="text/javascript"&gt;
&lt;!--
google_ad_client = "ca-pub-8198847728630330";
/* top banner */
google_ad_slot = "4524895600";
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Java Interview Question 1:&lt;/b&gt;&lt;br /&gt;
&lt;div closure_uid_mgajqo="112" dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="background-color: white; color: #cc0000;"&gt;&lt;b&gt;What is a class?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Class is a template for a set of objects that share common properties and a common behavior.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Java Interview Question 2:&lt;/b&gt;&lt;br /&gt;
&lt;span style="color: #cc0000;"&gt;&lt;b&gt;What is Constructor?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
When you create a new instance (a new object) of a class using the new keyword, a constructor for that class is called. Constructors are used to initialize the instance variables (fields) of an object. Constructors must have the same name as the class and can not return a value. The first line of a constructor must either be a call on another constructor in the same class (using this), or a call on the superclass constructor (using super). If the first line is neither of these, the compiler automatically inserts a call to the parameterless super class constructor. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Java Interview Question 3:&lt;/b&gt;&lt;br /&gt;
&lt;span style="color: #cc0000;"&gt;&lt;b&gt;What is Default Constructor?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div closure_uid_mgajqo="117"&gt;Java provides a default constructor, if a class defined by the code does not have any constructor. If you define any constructor for your class, no default parameterless constructor is automatically created by the compiler. The default constructor calls the default parent constructor (super()) and initializes all instance variables to default value (zero for numeric types, null for object references, and false for booleans). The access modifier (public/private/etc.) of the default constructor is the same as the class itself.&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Java Interview Question 4:&lt;/b&gt;&lt;br /&gt;
&lt;span style="color: #cc0000;"&gt;&lt;b&gt;How are this() and super() used with constructors?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
this() is used to invoke a constructor of the same class with a different parameter list. super() is used to invoke a superclass constructor. If a constructor uses super, it must be the first statement in the body of a constructor.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/06/java-interview-questions-2.html" style="color: blue;"&gt;Next &amp;nbsp;&amp;gt;&amp;gt;&lt;/a&gt;&lt;/b&gt;&lt;script type="text/javascript"&gt;
&lt;!--
google_ad_client = "ca-pub-8198847728630330";
/* top banner */
google_ad_slot = "4524895600";
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1884867013769212760-6200629589690272581?l=javatechies.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/AAqfp/~4/gJ30OmBG3Xk" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1884867013769212760/posts/default/6200629589690272581?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1884867013769212760/posts/default/6200629589690272581?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/AAqfp/~3/gJ30OmBG3Xk/java-interview-question.html" title="Java Interview Question" /><author><name>Jaya</name><uri>http://www.blogger.com/profile/14528596387062100027</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://javatechies.blogspot.com/2010/11/java-interview-question.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkMMRH46fSp7ImA9WhRbEUg.&quot;"><id>tag:blogger.com,1999:blog-1884867013769212760.post-6133089120569048131</id><published>2010-06-17T15:26:00.000-07:00</published><updated>2012-02-01T18:41:25.015-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-01T18:41:25.015-08:00</app:edited><title>Java Interview Question 6</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/S3SvpRt3i4XG-ynPZ_3h-WVQI_M/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/S3SvpRt3i4XG-ynPZ_3h-WVQI_M/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/S3SvpRt3i4XG-ynPZ_3h-WVQI_M/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/S3SvpRt3i4XG-ynPZ_3h-WVQI_M/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/06/java-interview-question-5.html" style="color: blue;"&gt;&amp;lt;&amp;lt; Previous&lt;/a&gt;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/11/java-interview-question.html" style="color: blue;"&gt;Next &amp;nbsp;&amp;gt;&amp;gt;&lt;/a&gt;&lt;/b&gt;&lt;script type="text/javascript"&gt;
&lt;!--
google_ad_client = "ca-pub-8198847728630330";
/* top banner */
google_ad_slot = "4524895600";
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Java Interview Question 16:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="color: #cc0000;"&gt;What is encapsulation?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: small;"&gt;Imagine a class, RectExample with public instance variables as the following code demonstrates:&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: inherit; margin-bottom: 0in;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: small;"&gt;public class RectExample {&lt;br /&gt;
&lt;br /&gt;
public int length;&lt;br /&gt;
public int breadth;&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
}&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit; margin-bottom: 0in; text-align: justify;"&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;Since the instance variables of RectExample are public, another programmer can easily modify the instance variables in a way that helps their code logic but totally alters the way your class works:&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="font-family: inherit; margin-bottom: 0in;"&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;public class AnotherRectExample {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; public static void main (String [] args) {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RectExample b = new RectExample ();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b.length = -5; // Legal but not good!!&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;In the above code another programmer is trying to &lt;/span&gt;&lt;span style="font-size: small;"&gt;set a value to the length variable that you dont want. So we need to make changes to the class &lt;/span&gt;&lt;span style="font-size: small;"&gt;in such a way that no one can alter the values directly. The ability to make changes in your code without breaking the code of all others who use your code is a key benefit of encapsulation. This can be achieved by making the instance variables as private and then have a set of public methods that others can use to access the variables. The access methods are referred as getters and setters or accessors and mutators. &lt;/span&gt;&lt;span style="font-size: small;"&gt;Declaring variables as private in a class, gives access to the variables to only member functions of the class. A next level of accessibility is provided by the protected keyword which gives the derived classes the access to the instance variables of the base class.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="font-family: inherit; margin-bottom: 0in;"&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;Example:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit; margin-bottom: 0in;"&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;public class SquareExample {&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: small;"&gt;// protect the instance variable only an instance of your class can access it&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: small;"&gt;private int length;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: small;"&gt;// Provide public getters and setters&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: small;"&gt;public int getLength() {&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: small;"&gt;return length;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: small;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: small;"&gt;public void setLength(int newLength) {&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: small;"&gt;length = newLength;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: small;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: small;"&gt;} &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="font-family: inherit; text-align: justify;"&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;Encapsulation can be defined as the technique of making the fields in a class private and providing access to the fields via public methods. The main benefit of encapsulation is the ability to modify your implemented code without breaking the code of others who use your code. With this feature Encapsulation gives maintainability, flexibility and extensibility to your code.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/06/java-interview-question-5.html" style="color: blue;"&gt;&amp;lt;&amp;lt; Previous&lt;/a&gt;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/11/java-interview-question.html" style="color: blue;"&gt;Next &amp;nbsp;&amp;gt;&amp;gt;&lt;/a&gt;&lt;/b&gt;&lt;script type="text/javascript"&gt;
&lt;!--
google_ad_client = "ca-pub-8198847728630330";
/* top banner */
google_ad_slot = "4524895600";
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1884867013769212760-6133089120569048131?l=javatechies.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/AAqfp/~4/yNlt0Tf1nLI" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1884867013769212760/posts/default/6133089120569048131?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1884867013769212760/posts/default/6133089120569048131?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/AAqfp/~3/yNlt0Tf1nLI/java-interview-question-6.html" title="Java Interview Question 6" /><author><name>Jaya</name><uri>http://www.blogger.com/profile/14528596387062100027</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://javatechies.blogspot.com/2010/06/java-interview-question-6.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkYMR3s-fyp7ImA9WhRbEUg.&quot;"><id>tag:blogger.com,1999:blog-1884867013769212760.post-3053269125980328790</id><published>2010-06-17T15:21:00.000-07:00</published><updated>2012-02-01T18:36:26.557-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-01T18:36:26.557-08:00</app:edited><title>Java Interview Question 5</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/dFo20pCnau_0A5TU_aL-PfDYFc0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dFo20pCnau_0A5TU_aL-PfDYFc0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/dFo20pCnau_0A5TU_aL-PfDYFc0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dFo20pCnau_0A5TU_aL-PfDYFc0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/06/java-interview-question-4.html" style="color: blue;"&gt;&amp;lt;&amp;lt; Previous&lt;/a&gt;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/06/java-interview-question-6.html" style="color: blue;"&gt;Next &amp;nbsp;&amp;gt;&amp;gt;&lt;/a&gt;&lt;/b&gt;&lt;script type="text/javascript"&gt;
&lt;!--
google_ad_client = "ca-pub-8198847728630330";
/* top banner */
google_ad_slot = "4524895600";
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="color: #cc0000;"&gt;&lt;span style="color: black;"&gt;Java Interview Question 14:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="color: #cc0000;"&gt;What's the difference between == and equals method?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;The “==” operator compares two object references to check whether they refer to the same instances or not. That is, they looks at the actually memory address to see if it is actually the same object. Whereas the equals method compares the contents of the objects.&lt;/div&gt;&lt;br /&gt;
For example, consider the following&lt;br /&gt;
&lt;br /&gt;
&lt;div style="background-color: #f3f3f3;"&gt;String str1 = new String("abcd");&lt;/div&gt;&lt;div style="background-color: #f3f3f3;"&gt;String str2 = new String("abcd");&lt;/div&gt;&lt;br /&gt;
The line of code create a new String object, with a value of "abcd", and assign it to a reference variable str1 and str2.&lt;br /&gt;
&lt;br /&gt;
Now, if you use the "equals()" method to check for their equivalence as &lt;br /&gt;
&lt;br /&gt;
&lt;div style="background-color: #eeeeee;"&gt;if(str1.equals(str2))&lt;/div&gt;&lt;div style="background-color: #eeeeee;"&gt;&amp;nbsp;&amp;nbsp; System.out.println("str1.equals(str2) is TRUE");&lt;/div&gt;&lt;div style="background-color: #eeeeee;"&gt;else&lt;/div&gt;&lt;div style="background-color: #eeeeee;"&gt;&amp;nbsp;&amp;nbsp; System.out.println("str1.equals(str2) is FALSE");&lt;/div&gt;&lt;br /&gt;
The output will be TRUE as the 'equals()' method compares the contents of the objects.&lt;br /&gt;
&lt;br /&gt;
Lets check the '==' operator.. &lt;br /&gt;
&lt;br /&gt;
&lt;div style="background-color: #eeeeee;"&gt;if(str1==str2)&lt;/div&gt;&lt;div style="background-color: #eeeeee;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.printlln("str1==str2 is TRUE");&lt;/div&gt;&lt;div style="background-color: #eeeeee;"&gt;else&lt;/div&gt;&lt;div style="background-color: #eeeeee;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("str1==str2 is FALSE");&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;The output will be FALSE because both str1and str2 are pointing to two different objects even though both of them share the same string content. It is because of 'new String()' everytime a new object is created.&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Java Interview Question 15:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="color: #cc0000;"&gt;What is inheritance?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;In OOPs, the concept of inheritance provides the idea of reusability. That is, when we want to create a new class and there is already a class that includes some of the code that we want, we can derive our new class from the existing class. We can add additional features to the derived class. The derived class will have combined features of both the classes. In other words, inheritance can be defined as the capability of a class to use the properties and methods of another class while adding its own functionality. Java uses the extends keyword to set the relationship between a base class (also a superclass or a parent class) and a derived class (also a subclass, extended class, or child class). Only properties with access modifier public and protected can be accessed in child class. Constructors are not inherited by subclasses, but the constructor of the superclass can be invoked from the subclass. Each class is allowed to have one direct superclass, and each superclass has the potential for an unlimited number of subclasses:&lt;/div&gt;&lt;br /&gt;
The syntax for creating a subclass.&lt;br /&gt;
&lt;br /&gt;
class A extends B{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // new fields and methods would go here&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
Here, class A is the subclass and B is the superclass&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/06/java-interview-question-4.html" style="color: blue;"&gt;&amp;lt;&amp;lt; Previous&lt;/a&gt;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/06/java-interview-question-6.html" style="color: blue;"&gt;Next &amp;nbsp;&amp;gt;&amp;gt;&lt;/a&gt;&lt;/b&gt;&lt;script type="text/javascript"&gt;
&lt;!--
google_ad_client = "ca-pub-8198847728630330";
/* top banner */
google_ad_slot = "4524895600";
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1884867013769212760-3053269125980328790?l=javatechies.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/AAqfp/~4/dhVR7rxukJA" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1884867013769212760/posts/default/3053269125980328790?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1884867013769212760/posts/default/3053269125980328790?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/AAqfp/~3/dhVR7rxukJA/java-interview-question-5.html" title="Java Interview Question 5" /><author><name>Jaya</name><uri>http://www.blogger.com/profile/14528596387062100027</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://javatechies.blogspot.com/2010/06/java-interview-question-5.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0EEQHg4eip7ImA9WhRbEUk.&quot;"><id>tag:blogger.com,1999:blog-1884867013769212760.post-1693805021870223188</id><published>2010-06-17T15:18:00.000-07:00</published><updated>2012-02-01T18:26:41.632-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-01T18:26:41.632-08:00</app:edited><title>Java Interview Question 4</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/VAmqcQnqhfRdVsny3z4AfZsl6CY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VAmqcQnqhfRdVsny3z4AfZsl6CY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/VAmqcQnqhfRdVsny3z4AfZsl6CY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VAmqcQnqhfRdVsny3z4AfZsl6CY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/06/java-interview-question-3.html" style="color: blue;"&gt;&amp;lt;&amp;lt; Previous&lt;/a&gt;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/06/java-interview-question-5.html" style="color: blue;"&gt;Next &amp;nbsp;&amp;gt;&amp;gt;&lt;/a&gt;&lt;/b&gt;&lt;script type="text/javascript"&gt;
&lt;!--
google_ad_client = "ca-pub-8198847728630330";
/* top banner */
google_ad_slot = "4524895600";
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Java Interview Question 11:&lt;/b&gt;&lt;br /&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;b&gt;&lt;span style="color: #cc0000;"&gt;What is a thread?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
A thread can be defined as a separate stream of execution that takes place simultaneously with and independently of everything else that might be happening. A thread runs independently of anything else happening in the computer. Without threads an entire program can be held up by one CPU intensive task or one infinite loop, intentional or otherwise. With threads the other tasks that don't get stuck in the loop can continue processing without waiting for the stuck task to finish. &lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Java Interview Question 12:&lt;/b&gt;&lt;br /&gt;
&lt;span style="color: #cc0000;"&gt;&lt;b&gt;What are the two ways of creating thread and which is the most advantageous method?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
There are 2 ways in which a thread can be created.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Extend the java.lang.Thread class.&lt;/li&gt;
&lt;li&gt;Implement the Runnable interface.&lt;/li&gt;
&lt;/ul&gt;&lt;b&gt;Extending java.lang.Thread class&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Extend the java.lang.Thread class.&lt;/li&gt;
&lt;li&gt;Override the run() method.&lt;/li&gt;
&lt;li&gt;Create an instance of the subclass and invoke the start() method on it, which will create a new thread of execution. e.g. &lt;/li&gt;
&lt;/ul&gt;public class MyThread extends Thread{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void run(){&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// the code that has to be executed in a separate new thread goes here&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static void main(String [] args){&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MyThread&amp;nbsp;t = new MyThread();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.start();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Implementing Runnable interface&lt;/b&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The class will have to implement the run() method in the Runnable interface. Create an instance of this class. Pass the reference of this instance to the Thread constructor, a new thread of execution will be created. e.g. &lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
public class&amp;nbsp;MyRunnable implements Runnable{ &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public void run(){ &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // the code that has to be executed in a separate new thread goes here&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String [] args){ &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyRunnable&amp;nbsp;r = new MyRunnable(); &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Thread t = new Thread(r);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.start();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;When creating threads, there are two reasons why implementing the Runnable interface may be preferable to extending the Thread class:&lt;/div&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Extending the Thread class means that the subclass cannot extend any other class, whereas a class implementing the Runnable interface has this option. &lt;/li&gt;
&lt;li&gt;A class might only be interested in being runnable, and therefore, inheriting the full overhead of the Thread class would be excessive.&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="color: #cc0000;"&gt;&lt;span style="color: black;"&gt;Java Interview Question 13:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="color: #cc0000;"&gt;What all constructors are present in the Thread class? &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;The&amp;nbsp;no-arg constructor in class Thread.&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&amp;nbsp;Thread()&lt;/li&gt;
&lt;/ul&gt;&lt;b&gt;Overloaded constructors in class Thread.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Thread(Runnable target)&lt;/li&gt;
&lt;li&gt;Thread(Runnable target, String name)&lt;/li&gt;
&lt;li&gt;Thread(String name)&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/06/java-interview-question-3.html" style="color: blue;"&gt;&amp;lt;&amp;lt; Previous&lt;/a&gt;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/06/java-interview-question-5.html" style="color: blue;"&gt;Next &amp;nbsp;&amp;gt;&amp;gt;&lt;/a&gt;&lt;/b&gt;&lt;script type="text/javascript"&gt;
&lt;!--
google_ad_client = "ca-pub-8198847728630330";
/* top banner */
google_ad_slot = "4524895600";
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1884867013769212760-1693805021870223188?l=javatechies.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/AAqfp/~4/JCNEgzAnJqI" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1884867013769212760/posts/default/1693805021870223188?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1884867013769212760/posts/default/1693805021870223188?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/AAqfp/~3/JCNEgzAnJqI/java-interview-question-4.html" title="Java Interview Question 4" /><author><name>Jaya</name><uri>http://www.blogger.com/profile/14528596387062100027</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://javatechies.blogspot.com/2010/06/java-interview-question-4.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkEERXg9cSp7ImA9WhRbEUk.&quot;"><id>tag:blogger.com,1999:blog-1884867013769212760.post-5507327293768392899</id><published>2010-06-17T15:15:00.000-07:00</published><updated>2012-02-01T18:10:04.669-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-01T18:10:04.669-08:00</app:edited><title>Java Interview Question 3</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/mSRD9xckYoFk9UiD15OZJKpTs7g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mSRD9xckYoFk9UiD15OZJKpTs7g/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/mSRD9xckYoFk9UiD15OZJKpTs7g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mSRD9xckYoFk9UiD15OZJKpTs7g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/06/java-interview-questions-2.html" style="color: blue;"&gt;&amp;lt;&amp;lt; Previous&lt;/a&gt;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/06/java-interview-question-4.html" style="color: blue;"&gt;Next &amp;nbsp;&amp;gt;&amp;gt;&lt;/a&gt;&lt;/b&gt;&lt;script type="text/javascript"&gt;
&lt;!--
google_ad_client = "ca-pub-8198847728630330";
/* top banner */
google_ad_slot = "4524895600";
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;Java Interview Question 8:&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #cc0000;"&gt;How does Java handle exceptions using try –catch block?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;When an exceptional event occurs in Java, an exception is said to be "thrown." The code that's responsible for doing something about the exception is called an "exception handler," and it "catches" the thrown exception. Exception handling works by transferring the execution of a program to an appropriate exception handler when an exception occurs.&amp;nbsp;We need a way to tell the JVM what code to execute when a certain exception happens. To do this, we use the try and catch keywords. The try is used to define a block of code in which exceptions may occur. This block of code is called a guarded region (which really means "risky code goes here"). If an exception occurs within the try block, that exception is handled by an exception handler associated with it. To associate an exception handler with a try block, we must put a catch block after it. The catch block contains the code that is executed in exceptional circumstances. We can associate exception handlers with a try block by providing one or more catch blocks directly after the try block. No code can be between the end of the try block and the beginning of the first catch block.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: red; line-height: 115%;"&gt;&lt;span style="color: #cc0000;"&gt;&lt;span style="color: black; font-family: inherit;"&gt;&lt;b&gt;Java Interview Question 9:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: red; line-height: 115%;"&gt;&lt;b&gt;&lt;span style="color: #cc0000; font-family: inherit;"&gt;What is the use of the finally block? &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify;"&gt;&lt;span style="color: red; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9pt; line-height: 115%;"&gt;&lt;b&gt;&lt;span style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;Finally is the block of code that needs to be executed under any circumstance. The code in finally block will execute even if an exception is occurred. When an exception is thrown, the statements in the try block written after the statement in which the exception occurred are ignored. The finally block is used to process certain statements, no matter whether an exception is thrown or not. "Finally" creates a block of code that will be executed after try/catch block has completed and before the code following the try/catch block. If there is a catch block associated with the try block, the finally clause is executed after the catch block. If an exception is thrown, finally block will execute even if no catch statements matches the exception. Finally is guaranteed to execute, even if no exceptions are thrown. Finally block is an ideal position for closing the resources such as file handle or a database connection etc. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;Java Interview Question 10:&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="color: #cc0000;"&gt;What are transient variables in java?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Transient variables are variable that cannot be serialized. &lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/06/java-interview-questions-2.html" style="color: blue;"&gt;&lt;span style="font-size: small;"&gt;&amp;lt;&amp;lt; Previous&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt; &lt;span style="font-size: large;"&gt;&lt;/span&gt;&lt;a href="http://javatechies.blogspot.com/2010/06/java-interview-question-4.html" style="color: blue;"&gt;&lt;span style="font-size: small;"&gt;Next &amp;nbsp;&amp;gt;&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;script type="text/javascript"&gt;
&lt;!--
google_ad_client = "ca-pub-8198847728630330";
/* top banner */
google_ad_slot = "4524895600";
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"&gt;
&lt;/script&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1884867013769212760-5507327293768392899?l=javatechies.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/AAqfp/~4/kv7EuS4tHfs" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1884867013769212760/posts/default/5507327293768392899?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1884867013769212760/posts/default/5507327293768392899?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/AAqfp/~3/kv7EuS4tHfs/java-interview-question-3.html" title="Java Interview Question 3" /><author><name>Jaya</name><uri>http://www.blogger.com/profile/14528596387062100027</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://javatechies.blogspot.com/2010/06/java-interview-question-3.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkYHQHw4fip7ImA9WhRbEUk.&quot;"><id>tag:blogger.com,1999:blog-1884867013769212760.post-1943444082081765047</id><published>2010-06-17T15:13:00.000-07:00</published><updated>2012-02-01T18:02:11.236-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-01T18:02:11.236-08:00</app:edited><title>Java Interview Questions 2</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/BQQuYweD0BfCi4TL2PYGpNnZhos/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BQQuYweD0BfCi4TL2PYGpNnZhos/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/BQQuYweD0BfCi4TL2PYGpNnZhos/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BQQuYweD0BfCi4TL2PYGpNnZhos/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/11/java-interview-question.html" style="color: blue;"&gt;&amp;lt;&amp;lt; Previous&lt;/a&gt;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;  &lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/06/java-interview-question-3.html" style="color: blue;"&gt;Next &amp;nbsp;&amp;gt;&amp;gt;&lt;/a&gt;&lt;/b&gt;&lt;script type="text/javascript"&gt;
&lt;!--
google_ad_client = "ca-pub-8198847728630330";
/* top banner */
google_ad_slot = "4524895600";
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;b&gt;Java Interview Question 5:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="color: #cc0000;"&gt;What is an abstract class?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
Abstract class is a class which contain one or more abstract methods, which has to be implemented by sub classes. A class that is abstract may not be instantiated. Its sole purpose is to be extended (subclassed). When an abstract class is subclassed, the subclass usually provides implementations for all of the abstract methods in its parent class. However, if it does not, the subclass must also be declared &lt;code&gt;abstract&lt;/code&gt;. A class may be declared abstract even if it has no abstract methods. This prevents it from being instantiated.&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Java Interview Question 6:&lt;/b&gt;&lt;br /&gt;
&lt;span style="color: #cc0000;"&gt;&lt;b&gt;What is the final keyword denotes?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
A final keyword can be used for class, method and variables. The keyword final denotes that it is the final implementation for that class or method or variables.&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Final class&lt;/b&gt;: A class that is declared final cannot be a superclass. That is, no other class can extend (inherit from) a final class. In other words, Java classes declared as final cannot be extended/subclassed. All methods in a final class are implicitly final. Many of the Java standard library classes are final, for example java.lang.System and java.lang.String&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;b&gt;Final method&lt;/b&gt;: If declaring an entire class final is too heavy-handed for your needs, you can declare some or all the class’s methods final instead. A final method indicate that the method cannot be overridden by subclasses. A method is marked as final if it has an implementation that should not be changed.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;b&gt;Final variable&lt;/b&gt;: A final variable can only be assigned once. The value of a final variable cannot change&amp;nbsp;after it has been initialized.. A variable that is declared as final and not initialized is called a blank final variable.&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="color: #cc0000;"&gt;&lt;span style="color: black;"&gt;Java Interview Question 7:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="color: #cc0000;"&gt;What is an exception?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The term "exception" means "exceptional condition" which occurs during the execution of a program, that disrupts the normal flow of the program's instructions.&lt;br /&gt;
&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/11/java-interview-question.html" style="background-color: white; color: blue;"&gt;&lt;span style="font-size: small;"&gt;&amp;lt;&amp;lt; Previous&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;span style="background-color: white; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;a href="http://javatechies.blogspot.com/2010/06/java-interview-question-3.html" style="color: blue;"&gt;&lt;span style="font-size: small;"&gt;Next &amp;nbsp;&amp;gt;&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;script type="text/javascript"&gt;
&lt;!--
google_ad_client = "ca-pub-8198847728630330";
/* top banner */
google_ad_slot = "4524895600";
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"&gt;
&lt;/script&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1884867013769212760-1943444082081765047?l=javatechies.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/AAqfp/~4/OoK8doMJBEI" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1884867013769212760/posts/default/1943444082081765047?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1884867013769212760/posts/default/1943444082081765047?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/AAqfp/~3/OoK8doMJBEI/java-interview-questions-2.html" title="Java Interview Questions 2" /><author><name>Jaya</name><uri>http://www.blogger.com/profile/14528596387062100027</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://javatechies.blogspot.com/2010/06/java-interview-questions-2.html</feedburner:origLink></entry></feed>

