<?xml version="1.0" encoding="UTF-8" standalone="no"?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>Java Interview Questions</title><description>we help for your success...!</description><managingEditor>noreply@blogger.com (admin)</managingEditor><pubDate>Fri, 1 Nov 2024 13:26:57 +0530</pubDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">37</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">25</openSearch:itemsPerPage><link>http://java-interview-questions-world.blogspot.com/</link><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:keywords>java,interview,questions,java,questions,java</itunes:keywords><itunes:summary>java interview questions</itunes:summary><itunes:subtitle>java interview questions</itunes:subtitle><itunes:category text="Education"><itunes:category text="Educational Technology"/></itunes:category><itunes:owner><itunes:email>mailswelcome@gmail.com</itunes:email></itunes:owner><item><title>What are the differences between ArrayList and LinkedList?       java interview questions....</title><link>http://java-interview-questions-world.blogspot.com/2011/09/what-are-differences-between-arraylist.html</link><category>array list</category><pubDate>Thu, 22 Sep 2011 09:38:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-3797028329519847037</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: #2a2a2a;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana, Tahoma, Arial, sans-serif; line-height: 1.5em; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="font-family: Verdana, Arial, Helvetica;"&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;ul style="color: #2a2a2a; font-family: Verdana, Tahoma, Arial, sans-serif; line-height: 1.5em; text-align: left;"&gt;&lt;li style="color: #2a2a2a; font-family: Verdana, Tahoma, Arial, sans-serif; line-height: 1.5em;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica;"&gt;it's is a List implementation backed by a Java array, like Vector class&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;ul style="color: #2a2a2a; font-family: Verdana, Tahoma, Arial, sans-serif; line-height: 1.5em; text-align: left;"&gt;&lt;li style="color: #2a2a2a; font-family: Verdana, Tahoma, Arial, sans-serif; line-height: 1.5em;"&gt;&lt;span class="Apple-style-span" style="color: #2a2a2a; font-family: Verdana, Arial, Helvetica; line-height: 24px;"&gt;&amp;nbsp;If there are lots of growth periods, performance degrades as the old array needs to be copied into the new array.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;ul style="color: #2a2a2a; font-family: Verdana, Tahoma, Arial, sans-serif; line-height: 1.5em; text-align: left;"&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica;"&gt;&amp;nbsp;However, random access is very quick as it uses an array index to access.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;ul style="color: #2a2a2a; font-family: Verdana, Tahoma, Arial, sans-serif; line-height: 1.5em; text-align: left;"&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica;"&gt;LinkedList, the List implementation is backed by a doubly linked list data structure, allowing easy inserts/deletions anywhere in the structure, but really slow random accesses as the access must start at an end to get to the specific position.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
for more answers &lt;a href="http://www.jguru.com/faq/view.jsp?EID=106663"&gt;click here&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #2a2a2a; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 11px;"&gt;&lt;span style="font-family: Verdana, Arial, Helvetica; font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>java interview questions ...</title><link>http://java-interview-questions-world.blogspot.com/2011/09/java-interview-questions.html</link><pubDate>Mon, 19 Sep 2011 14:24:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-8151731081547281949</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>What is a static method? java interview questions..</title><link>http://java-interview-questions-world.blogspot.com/2011/09/what-is-static-method-java-interview_6592.html</link><category>basic java</category><pubDate>Mon, 19 Sep 2011 09:55:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-6320670308731623421</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;b&gt;Ans:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Static variables are always called by the class name.&lt;/li&gt;
&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;a href="http://java-interview-questions-world.blogspot.com/2011/08/what-is-class.html"&gt;Class&lt;/a&gt; variables or static variables are declared with the static keyword in a class. These are declared outside a class and stored in static memory.&lt;/li&gt;
&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;The scope of the class variable is same an instance variable.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;A static variable is associated with the class as a whole rather than with specific instances of a class. Each &lt;a href="http://java-interview-questions-world.blogspot.com/2011/08/what-is-object.html"&gt;object&lt;/a&gt; will share a common copy of the static variables .&lt;/li&gt;
&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&amp;nbsp;Class variables are mostly used for constants Its initial value is same as instance variable and gets a default value when its not initialized corresponding to the data type.&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
for more answers &lt;a href="http://www.interview-questions-java.com/"&gt;click here&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>What is the difference between instanceof and isInstance?    java interview questions</title><link>http://java-interview-questions-world.blogspot.com/2011/09/what-is-difference-between-instanceof.html</link><category>basic java</category><pubDate>Fri, 16 Sep 2011 10:03:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-5425057090520921577</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;i&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;b&gt;Ans:&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/i&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;i&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&amp;nbsp;instanceof is used to check to see if an object can be cast into a specified type &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;without throwing a cast class exception.&lt;/span&gt;&lt;/i&gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;i&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&amp;nbsp;isInstance() determines if the specified object is&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/i&gt;&lt;i&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;assignment-compatible with the object represented by this Class.&lt;/span&gt;&lt;/i&gt;&lt;/i&gt;&lt;i&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;i&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;This method is the dynamic equivalent of the Java language instanceof operator. &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;i&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&amp;nbsp;The method returns true&amp;nbsp;if the specified Object argument is nonnull and can be cast to the reference type represented by this Class object without raising a ClassCastException. It returns false&lt;/span&gt;&lt;/i&gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;i&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;/span&gt;&lt;/i&gt;&lt;/i&gt;&lt;br /&gt;
&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;i&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-style: normal;"&gt;&lt;i&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;In instanceof operator You can compare it to a named type only, and not to a Class object.&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/i&gt;&lt;/li&gt;
&lt;i&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt; &lt;/span&gt;&lt;/i&gt;&lt;/i&gt;&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;i&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-style: normal;"&gt;&lt;i&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;isInstance remove this problem and call instanceof operator dynamically.&lt;/span&gt;&lt;/i&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/i&gt;&lt;/li&gt;
&lt;i&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt; &lt;/span&gt;&lt;/i&gt;&lt;/i&gt;&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
for more answers &lt;a href='http://www.coolinterview.com/interview/377/'&gt;click here&lt;/a&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>Difference between Overloading and Overriding?    java interview questions...</title><link>http://java-interview-questions-world.blogspot.com/2011/09/difference-between-overloading-and.html</link><category>polymorphism</category><pubDate>Mon, 12 Sep 2011 10:11:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-3330765211894651483</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Ans&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;         &amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;               1. In overloading,there is a relation ship between methods 
                   available in the same class where as in overridding,there 
                   is relationship between a super class method and subclass 
                   method.
&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;               2. overloading doesn't block  inheritence from the 
                   superclass where as overridding blocks inheritence.

              3. in overloading,seperate methods share the same name 
                  where as in overridding,subclass methods replaces the 
                 superclass.

              4.overloading must have different method signatures where 
                 as overriding must have same signature.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;                                 more answers &lt;a href='http://www.allinterview.com/showanswers/241.html'&gt;click here&lt;/a&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>What are the differences between boolean &amp; operator and &amp; operator?         java interview questions</title><link>http://java-interview-questions-world.blogspot.com/2011/09/what-are-differences-between-boolean.html</link><category>basic java</category><pubDate>Mon, 12 Sep 2011 10:04:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-3784065583532590849</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: georgia, serif; line-height: 16px;"&gt;&lt;b&gt;Ans:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #333333; font-family: georgia, serif; line-height: 16px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: georgia, serif; line-height: 16px;"&gt;When an expression containing the &amp;amp; operator is evaluated, both operands are evaluated.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: georgia, serif; line-height: 16px;"&gt;And the &amp;amp; operator is applied to the operand. When an expression containing &amp;amp;&amp;amp; operator is evaluated, the first operand is evaluated.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: georgia, serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: georgia, serif; line-height: 16px;"&gt;&amp;nbsp;If the first operand returns a value of true then only the second operand is evaluated otherwise the second part will not get executed. &amp;amp;&amp;amp; is also called short cut and.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: georgia, serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: georgia, serif; line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;more questions and answers&amp;nbsp;&lt;a href="http://www.iq-core-java.thiyagaraaj.com/core-java-interview-questions-part-1"&gt;click here&lt;/a&gt;&amp;nbsp;.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #333333; font-family: georgia, serif; line-height: 16px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #333333; font-family: georgia, serif; line-height: 16px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #333333; font-family: georgia, serif; line-height: 16px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>What are the Applet’s Life Cycle methods?  java interview questions..</title><link>http://java-interview-questions-world.blogspot.com/2011/09/what-are-applets-life-cycle-methods.html</link><category>swing</category><pubDate>Sat, 10 Sep 2011 14:02:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-5277824630411649688</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="color: #2d2c28; font-family: arial, 'Lucida Grande', 'Lucida Sans Unicode', geneva, verdana, sans-serif; line-height: 16px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 15px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Ans:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 15px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&lt;b&gt;Following are methods in the life cycle of an Applet:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 15px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
•&lt;b&gt; init() &lt;/b&gt;method – called when an applet is first loaded. This method is called only once in the &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;entire cycle of an applet. This method usually intialize the variables to be used in the applet.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 15px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
• &lt;b&gt;start( )&lt;/b&gt; method – called each time an applet is started.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 15px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
• &lt;b&gt;paint()&lt;/b&gt; method – called when the applet is minimized or refreshed. This method isused for drawing different strings, figures, and images on the applet window.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 15px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
• &lt;b&gt;stop( )&lt;/b&gt; method – called when the browser moves off the applet’s page.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 15px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
• destroy( ) method – called when the browser is finished with the applet.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>How to Make a Class Serializable ?             java interview questions</title><link>http://java-interview-questions-world.blogspot.com/2011/09/how-to-make-class-serializable-java.html</link><category>thread</category><pubDate>Sat, 10 Sep 2011 13:57:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-6944937496250889800</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="color: #2d2c28; font-family: arial, 'Lucida Grande', 'Lucida Sans Unicode', geneva, verdana, sans-serif; line-height: 16px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 15px; margin-top: 0px;"&gt;&lt;strong&gt;&lt;em&gt;Ans:&lt;/em&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style="margin-bottom: 15px; margin-top: 0px;"&gt;&lt;strong&gt;&lt;em&gt;There are four basic things you must do when you are making a class serializable. They are:&lt;/em&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style="margin-bottom: 15px; margin-top: 0px;"&gt;1. Implement the Serializable interface.&lt;/div&gt;&lt;div style="margin-bottom: 15px; margin-top: 0px;"&gt;2. Make sure that instance-level, locally defined state is serialized properly.&lt;/div&gt;&lt;div style="margin-bottom: 15px; margin-top: 0px;"&gt;3. Make sure that superclass state is serialized properly.&lt;/div&gt;&lt;div style="margin-bottom: 15px; margin-top: 0px;"&gt;4. Override equals( ) and hashCode( ).&lt;/div&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>Define Hashtable,HashMap and HashSet ?                                                                                                                                                                                   java interview questions</title><link>http://java-interview-questions-world.blogspot.com/2011/09/define-hashtablehashmap-and-hashset.html</link><category>map</category><pubDate>Sat, 10 Sep 2011 13:54:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-302413564891935941</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="color: #2d2c28; font-family: arial, 'Lucida Grande', 'Lucida Sans Unicode', geneva, verdana, sans-serif; line-height: 16px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 15px; margin-top: 0px;"&gt;&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #2d2c28; font-family: arial, 'Lucida Grande', 'Lucida Sans Unicode', geneva, verdana, sans-serif; line-height: 16px;"&gt;&lt;strong&gt;Hashtable&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #2d2c28; font-family: arial, 'Lucida Grande', 'Lucida Sans Unicode', geneva, verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #2d2c28; font-family: arial, 'Lucida Grande', 'Lucida Sans Unicode', geneva, verdana, sans-serif; line-height: 16px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 15px; margin-top: 0px;"&gt;Hashtable is basically a datastructure to retain values of key-value pair.&lt;/div&gt;&lt;ul style="list-style-type: none; margin-bottom: 15px; margin-left: 30px; margin-right: 30px; margin-top: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;li&gt;It didn’t allow null for both key and value. You will get NullPointerException if you add null value.&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;It is synchronized. So it come with its cost. Only one thread can access in one time.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="margin-bottom: 15px; margin-top: 0px;"&gt;&lt;strong&gt;HashMap&lt;/strong&gt;&lt;/div&gt;&lt;div style="margin-bottom: 15px; margin-top: 0px;"&gt;Like Hashtable it also accepts key value pair.&lt;/div&gt;&lt;ul style="list-style-type: none; margin-bottom: 15px; margin-left: 30px; margin-right: 30px; margin-top: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;li&gt;It allows null for both key and value&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;It is un-synchronized. So come up with better performance.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="margin-bottom: 15px; margin-top: 0px;"&gt;&lt;strong&gt;HashSet&lt;/strong&gt;&lt;/div&gt;&lt;div style="margin-bottom: 15px; margin-top: 0px;"&gt;HashSet does not allow duplicate values. It provides add method rather put method. You also use its contain method to check whether the object is already available in HashSet. HashSet can be used&amp;nbsp; where you want to maintain a unique list.&lt;/div&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>diferents between awt and swing? java interview questions...</title><link>http://java-interview-questions-world.blogspot.com/2011/08/diferents-between-awt-and-swing.html</link><category>swing</category><pubDate>Sat, 10 Sep 2011 02:03:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-8240836644907001396</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;write your answers here?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>what is class? java interview questions....</title><link>http://java-interview-questions-world.blogspot.com/2011/08/what-is-class.html</link><category>class</category><pubDate>Sat, 10 Sep 2011 01:48:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-6121191184635290585</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;b&gt;Ans:&lt;/b&gt;&lt;br /&gt;
&lt;ul style="text-align: left;"&gt;&lt;li&gt;&amp;nbsp;java class is a specification of how to construct something and also called template.&lt;/li&gt;
&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&amp;nbsp;Java classes contain multiple fields , variables and methods.&lt;/li&gt;
&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;The structure of a class and its subclasses is called the class hierarchy.&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;b&gt;syntax:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class classname{&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; //tour own code&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>what is polymorphism?   java interview questions....</title><link>http://java-interview-questions-world.blogspot.com/2011/08/what-is-polymorphism.html</link><category>polymorphism</category><pubDate>Sat, 10 Sep 2011 01:45:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-3539919185246900293</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;b&gt;Ans:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style="text-align: left;"&gt;&lt;li&gt;&amp;nbsp;ablity to make more then one form for same function.&lt;/li&gt;
&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ability to process objects differently depending on their data type or class&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;the characteristic of being able to assign a different meaning or usage for same function.&lt;/li&gt;
&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt; it's used to code reusability.&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;
&lt;b&gt;There are two types of polymorphism,&lt;/b&gt;&lt;br /&gt;
&lt;ol style="text-align: left;"&gt;&lt;li&gt;&amp;nbsp;overloading&lt;/li&gt;
&lt;li&gt;&amp;nbsp;overriding&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>What is JIT and its use?</title><link>http://java-interview-questions-world.blogspot.com/2011/09/what-is-jit-and-its-use.html</link><category>basic java</category><pubDate>Tue, 6 Sep 2011 10:31:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-2780990879969219164</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;answers soon....&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>What is the purpose of Void class?</title><link>http://java-interview-questions-world.blogspot.com/2011/09/what-is-purpose-of-void-class.html</link><category>class</category><pubDate>Tue, 6 Sep 2011 10:30:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-6780573476918215942</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;answers will update soon&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>What is mutable object and immutable object?</title><link>http://java-interview-questions-world.blogspot.com/2011/09/what-is-mutable-object-and-immutable.html</link><category>object</category><pubDate>Tue, 6 Sep 2011 10:29:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-6802287767989614777</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;answers will update soon.......&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>What kind of thread is the Garbage collector thread?</title><link>http://java-interview-questions-world.blogspot.com/2011/09/what-kind-of-thread-is-garbage.html</link><category>thread</category><pubDate>Tue, 6 Sep 2011 10:28:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-7903172563045731135</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;the answer soon.............&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>What are Wrapper Classes ?</title><link>http://java-interview-questions-world.blogspot.com/2011/09/what-are-wrapper-classes.html</link><category>class</category><pubDate>Mon, 5 Sep 2011 11:45:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-2027467491914542158</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;the wrapper class answer coming soon.....&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>What is the initial state of a thread when it is created and started?</title><link>http://java-interview-questions-world.blogspot.com/2011/09/what-is-initial-state-of-thread-when-it.html</link><category>thread</category><pubDate>Mon, 5 Sep 2011 11:39:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-8565790514654856004</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;the thread initial state answer coming soon......&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>What is the use of the finally block?</title><link>http://java-interview-questions-world.blogspot.com/2011/09/what-is-use-of-finally-block.html</link><category>exception</category><pubDate>Mon, 5 Sep 2011 11:38:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-1396895422240862948</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;the finally block answer coming soon..........&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>What is a Vector?  java interview questions ...</title><link>http://java-interview-questions-world.blogspot.com/2011/09/what-is-vector.html</link><category>array list</category><pubDate>Mon, 5 Sep 2011 11:36:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-773424811665508212</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;the vector answer coming soon......&lt;/span&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>What is synchronization?   java interview questions ...</title><link>http://java-interview-questions-world.blogspot.com/2011/09/what-is-synchronization.html</link><category>thread</category><pubDate>Mon, 5 Sep 2011 11:35:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-2748382944749041859</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-size: small;"&gt;the synchronization answer coming soon........... &lt;/span&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>Why threads block or enters to waiting state on I/O?    java interview questions ...</title><link>http://java-interview-questions-world.blogspot.com/2011/09/why-threads-block-or-enters-to-waiting.html</link><category>thread</category><pubDate>Mon, 5 Sep 2011 11:33:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-8159298399646258393</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;the thread blog or enters to waiting state in I/O answer comming soon........&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>what is jdbc?   java interview questions ...</title><link>http://java-interview-questions-world.blogspot.com/2011/08/what-is-jdbc.html</link><category>jdbc</category><pubDate>Wed, 31 Aug 2011 09:42:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-4679355939478372140</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;write your answers here&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>differents  between string and string buffer?   java interview questions ...</title><link>http://java-interview-questions-world.blogspot.com/2011/08/differents-between-string-and-string.html</link><category>io stream</category><pubDate>Wed, 31 Aug 2011 09:41:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-7279640108002786624</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;write your answers here&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item><item><title>what is array list?   java interview questions ...</title><link>http://java-interview-questions-world.blogspot.com/2011/08/what-is-array-list.html</link><category>array list</category><pubDate>Wed, 31 Aug 2011 09:39:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6420579555328795458.post-3456625762646766909</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;write your ans here&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>mailswelcome@gmail.com (admin)</author></item></channel></rss>