<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2619948989181631061</id><updated>2024-09-16T19:54:21.747-07:00</updated><category term="JAVA / J2EE"/><category term="MySQL"/><category term="php"/><title type='text'>Interview Questions</title><subtitle type='html'>Here we are providing interview questions which are related to java / j2ee. Give your comments and make it helpful to all.For JAVA videos visit http://www.sharmanj.com/allvideos.html</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>28</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-7067692739068824978</id><published>2010-08-11T19:44:00.001-07:00</published><updated>2010-08-11T20:18:05.078-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>About innerclasses ?</title><content type='html'>There are several types of inner classes.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;Inner classes&lt;br /&gt;method-inner classes&lt;br /&gt;Anonymus inner classes&lt;br /&gt;static nexted inner classes&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;The usage of each inner class has shown below :&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;Inner class:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;class Outer&lt;br /&gt;{&lt;br /&gt; class Inner&lt;br /&gt;{&lt;br /&gt;public void innerClassMethod()&lt;br /&gt;{&lt;br /&gt; System.out.println(&quot;You are in the method of inner class&quot;);&lt;br /&gt;}&lt;br /&gt;} &lt;br /&gt;public void  outerClassMethod()&lt;br /&gt;{&lt;br /&gt;Inner i=new Inner();&lt;br /&gt;i.innerClassMethod();&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The above represents the how to create a inner classes and how to use them. As you know when we compile a java file there will be a class files will be generated for all the classes defined in the java file. For inner classes also it will generate the class file as Outer$Inner.class.(But we can not run using Outer$Inner directly).&lt;br /&gt;&lt;br /&gt;We can also use the innerClassMethod() in the main also (not only in outerClassMethod()) by creating the object of inner class in the main as below&lt;br /&gt;&lt;br /&gt;Outer.Inner innerInstance= new Outer.new Inner()&lt;br /&gt;innerInstance.innerClassMethod();&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;method-inner classes:&lt;/span&gt;&lt;br /&gt;class Outer&lt;br /&gt;{&lt;br /&gt; &lt;br /&gt;public void  outerClassMethod()&lt;br /&gt;{&lt;br /&gt;class Inner&lt;br /&gt;{&lt;br /&gt;public void innerClassMethod()&lt;br /&gt;{&lt;br /&gt; System.out.println(&quot;You are in the method of inner class&quot;);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;Inner i=new Inner();&lt;br /&gt;i.innerClassMethod();&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Creating object for method inner classes:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We can only create the object of method-inner classes only in the methods in which the inner class is defined like above.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Anonymous Inner Classes&lt;/span&gt; :&lt;br /&gt;class A{&lt;br /&gt;public void sampleMethod() {&lt;br /&gt;System.out.println(&quot;Sample Method&quot;);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;class B{&lt;br /&gt;A p = new A() {&lt;br /&gt;public void sampleMethod() {&lt;br /&gt;System.out.println(&quot;anonymous Sample Method&quot;);&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you observe class B, there is class defined with the name outer method A. We can consider that method subclass of class A. But without name. Thats why it is called as Anonymous inner classes.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Static inner classes:&lt;/span&gt;&lt;br /&gt;class BigOuter {&lt;br /&gt;static class Nest {void go() { System.out.println(&quot;hi&quot;); } }&lt;br /&gt;}&lt;br /&gt;class Broom {&lt;br /&gt;static class B2 {void goB2() { System.out.println(&quot;hi 2&quot;); } }&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt;BigOuter.Nest n = new BigOuter.Nest(); // both class names&lt;br /&gt;n.go();&lt;br /&gt;B2 b2 = new B2(); // access the enclosed class&lt;br /&gt;b2.goB2();&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Above i have defined two types of using static inner classes.</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/7067692739068824978/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/08/about-innerclasses.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/7067692739068824978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/7067692739068824978'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/08/about-innerclasses.html' title='About innerclasses ?'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-2068325022446383288</id><published>2010-08-06T11:32:00.000-07:00</published><updated>2010-08-06T11:40:39.131-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>Differences between jar, war, ear files ?</title><content type='html'>jar - java archive,These files are with the .jar extension. The .jar files contain the libraries, resources and accessories files like property files. &lt;br /&gt;&lt;br /&gt;war - web archive : These files are with the .war extension. The war file contains the web application that can be deployed on the any servlet/jsp container. The .war file contains jsp, html, javascript and other files for necessary for the development of web applications.&lt;br /&gt; &lt;br /&gt;EAR - enterprise archive, These files are with the .ear extension.&lt;br /&gt;All .jar and .war are packaged as JAR file with .ear  extension and deployed into Application Server.&lt;br /&gt;&lt;br /&gt;we can say EAR= WAR+JAR.&lt;br /&gt;&lt;br /&gt;These three types of files called as jar files with different extensions. If we want to generate these files we will use JAR as a command in the command prompt.</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/2068325022446383288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/08/differences-between-jar-war-ear-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/2068325022446383288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/2068325022446383288'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/08/differences-between-jar-war-ear-files.html' title='Differences between jar, war, ear files ?'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-5716704801109953942</id><published>2010-08-06T08:48:00.000-07:00</published><updated>2010-08-06T08:55:37.995-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>OOPs Concepts ?</title><content type='html'>Object oriented Programming includes &lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Objects &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Classes &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Data abstraction and Encapsulation&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Inheritance&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Polymorphism&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Dynamic Binding&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Message Passing&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/5716704801109953942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/08/oops-concepts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/5716704801109953942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/5716704801109953942'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/08/oops-concepts.html' title='OOPs Concepts ?'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-8242628624229275682</id><published>2010-08-03T20:34:00.001-07:00</published><updated>2010-08-03T20:38:33.957-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>Default values of a instance variables ?</title><content type='html'>The default values of INSTANCE  variables are &lt;br /&gt;&lt;br /&gt;Object reference        -  NULL&lt;br /&gt;byte, short, int, long  -  0&lt;br /&gt;float, double           -  0.0&lt;br /&gt;boolean                 - false&lt;br /&gt;char                    - &#39;\uooo&#39; // Unicode character</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/8242628624229275682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/08/default-values-of-instance-variables.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/8242628624229275682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/8242628624229275682'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/08/default-values-of-instance-variables.html' title='Default values of a instance variables ?'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-1076559380536574635</id><published>2010-08-03T19:59:00.000-07:00</published><updated>2010-08-03T20:28:29.970-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>How to Sort a Collection ? or About Comparable,Comparator interface ?</title><content type='html'>Here is the example of a sorting a collection ArrayList of String objects.&lt;br /&gt;&lt;br /&gt;ArrayList&lt;String&gt; stringList=new ArrayList&lt;String&gt;();&lt;br /&gt;stringList.add(&quot;world&quot;);&lt;br /&gt;stringList.add(&quot;hello&quot;);&lt;br /&gt;&lt;br /&gt;Collections.sort(stringList); //Collections is a utility class using that we can sort.&lt;br /&gt;After this method the resultant list contains 2 strings with sorted. That means we are able to sort the ArrayList (collection) successfully.&lt;br /&gt;&lt;br /&gt;Similarly, If we try to sort a user defined class objects instead of String objects like..&lt;br /&gt;ArrayList&lt;DVDInfo&gt; dvdList=new ArrayList&lt;DVDInfo&gt;();&lt;br /&gt;.........&lt;br /&gt;.........&lt;br /&gt;Collections.sort(dvdList); // It will not sort like Sting objects collection.&lt;br /&gt;Because compiler does not know on which basis it has to sort. So, we have to tell programatically to sort the collection by implementing DVDInfo class to Comparable interface. For your information, String objects are implementing Comparable interface internally.&lt;br /&gt;&lt;br /&gt;If we implement Comparable interface to our class DVDInfo, we have to implement or override the one of following method.&lt;br /&gt;public int compareTo(Object obj) { .......} or&lt;br /&gt;public int compareTo(DVDInfo obj){ .......}.&lt;br /&gt;&lt;br /&gt;Using compareTo() we can have only one sort sequence. To want many sort sequences we use Comaparator and its method compare(). compare() method takes 2 arguments. First argument is which class is to be sorted, second is as which basis the class is to be sorted which should implement Comparator and override the method compare(). &lt;br /&gt;&lt;br /&gt;String, Wrapperclasses, Date, Calender classes are implicitly implement the Comparable interface.</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/1076559380536574635/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/08/how-to-sort-collection-or-about.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/1076559380536574635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/1076559380536574635'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/08/how-to-sort-collection-or-about.html' title='How to Sort a Collection ? or About Comparable,Comparator interface ?'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-9185380805784296915</id><published>2010-08-02T10:44:00.000-07:00</published><updated>2010-08-02T10:55:22.198-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>Difference between String, StringBuffer, StringBuilder ?</title><content type='html'>String Objects are immutable. That means we can not change the value of a String Object. For example, &lt;br /&gt;&lt;br /&gt;String s=&quot;Hello&quot;;  // A object creates in the heap memory and &#39;s&#39; refers to it.&lt;br /&gt;String s2=s.concat(&quot;World&quot;);// A new object creates with the &quot;Hello World&quot; and s2 refers to it instead of using the same memory for &quot;Hello&quot; Object &lt;br /&gt;&lt;br /&gt;So, Here there is a wastage of memory for &#39;s&#39; object. &lt;br /&gt;&lt;br /&gt;Unlike Strings, StringBuffer and StringBuilder are mutable. We can change the value in these objects.&lt;br /&gt;The only difference between StringBuffer and StringBuilder is that StringBuilder is unsynchronized whereas StringBuffer is synchronized. So when the application needs to be run only in a single thread then it is better to use StringBuilder. StringBuilder is more efficient than StringBuffer.</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/9185380805784296915/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/08/difference-between-string-stringbuffer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/9185380805784296915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/9185380805784296915'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/08/difference-between-string-stringbuffer.html' title='Difference between String, StringBuffer, StringBuilder ?'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-8073543685612769412</id><published>2010-07-30T10:47:00.000-07:00</published><updated>2010-07-30T10:56:26.453-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>About java finalize() method ?</title><content type='html'>Its a method defined in Object(Which is a base class of all the classes) class. Java dont have destructors instead it uses finalize() method. finalize() method not guarantee to run. For any given object finalize() method will be called only once by the garbage collector. Calling finalize() method can actually result in saving an object from deletion. If finalize() method contains the code of assigning a reference so that the object is not eligible for Garbage Collector. The second time the garbage collector will delete it. Because finalize() method run only one time for  a given object.</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/8073543685612769412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/07/about-java-finalize-method.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/8073543685612769412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/8073543685612769412'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/07/about-java-finalize-method.html' title='About java finalize() method ?'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-4644478414975192127</id><published>2010-07-29T20:03:00.000-07:00</published><updated>2010-07-29T20:06:41.205-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>The list of interfaces we use in javax.servlet.http package ?</title><content type='html'>The javax.servlet.http package contains a number of classes and interfaces that describe and define the contracts between Servlet class running under a HTTP Potocol and the runtime environment provided for an instance of such a class by a conforming Servlet container.&lt;br /&gt;&lt;br /&gt;The List of interfaces and classes in javax.servlet.http package are as follows.&lt;br /&gt;&lt;br /&gt;HttpServletRequest&lt;br /&gt;HttpServletResponse&lt;br /&gt;HttpSession&lt;br /&gt;HttpSessionListener&lt;br /&gt;HttpServlet&lt;br /&gt;Cookie</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/4644478414975192127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/07/list-of-interfaces-we-use-in_29.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/4644478414975192127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/4644478414975192127'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/07/list-of-interfaces-we-use-in_29.html' title='The list of interfaces we use in javax.servlet.http package ?'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-1310783045763584041</id><published>2010-07-29T19:57:00.000-07:00</published><updated>2010-07-29T20:03:09.015-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>The list of interfaces we use in javax.servlet package ?</title><content type='html'>The javax.servlet package contains a number of classes and interfaces that describe and define the contracts between Servlet class and the runtime environment provided for an instance of such a class by a conforming Servlet container.&lt;br /&gt;&lt;br /&gt;The List of interfaces and classes in javax.servlet package are as follows.&lt;br /&gt;&lt;br /&gt;Servlet&lt;br /&gt;ServletConfig&lt;br /&gt;ServletRequest&lt;br /&gt;ServletResponse&lt;br /&gt;RequestDispatcher&lt;br /&gt;Filter&lt;br /&gt;FilterConfig&lt;br /&gt;FilterChain&lt;br /&gt;GenericFilter&lt;br /&gt;ServletOutputStream&lt;br /&gt;ServletInputStream&lt;br /&gt;ServletException</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/1310783045763584041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/07/list-of-interfaces-we-use-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/1310783045763584041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/1310783045763584041'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/07/list-of-interfaces-we-use-in.html' title='The list of interfaces we use in javax.servlet package ?'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-730971836968963011</id><published>2010-07-28T09:02:00.000-07:00</published><updated>2010-07-28T19:53:58.765-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>What is a Java Thread and How to create them ?</title><content type='html'>Threads are lightweight processes that appear to run in parallel with your main program. Unlike a process a thread shares memory and data with the rest of the program. The word thread is a contraction of &quot;thread of execution&quot;.An example of where threads can be useful is in printing. When you click on a print button you probably don&#39;t want the main program to stop responding until printing has finished. What would be nice is that the printing process started running &quot;in the background&quot; and allowed you to continue using the main portion of the program. &lt;br /&gt;&lt;br /&gt;There are 2 ways to create a java thread. &lt;br /&gt;1. By extending the class with the Thread class.&lt;br /&gt;2. By implementing the Runnable interface.&lt;br /&gt;&lt;br /&gt;In both the cases we have to implement run() method.&lt;br /&gt;&lt;br /&gt;The best way to create the thread is to implement Runnable interface. Because, As you know java will not support multiple inheritance so, if we extend the class with the Thread class we cant extend with any other class. If we implement the class with Runnable interface, we can extend any other class</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/730971836968963011/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/07/what-is-java-thread-and-how-to-create.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/730971836968963011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/730971836968963011'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/07/what-is-java-thread-and-how-to-create.html' title='What is a Java Thread and How to create them ?'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-2443548795222220259</id><published>2010-07-27T20:48:00.001-07:00</published><updated>2010-11-24T08:27:13.925-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>Calling Java Garbage Collector ?</title><content type='html'>We can request (not demand) the java garbage collector to run by using 2 ways.&lt;br /&gt;&lt;br /&gt;1. Runtime rt = Runtime.getRuntime();&lt;br /&gt;    rt.gc();&lt;br /&gt;&lt;br /&gt;2. System.gc();&lt;br /&gt;&lt;br /&gt;Using Runtime object rt you can call more methods to know JVM memory. Examples,&lt;br /&gt;&lt;br /&gt;rt.totalMemory(), Will return the total memory of JVM.&lt;br /&gt;rt.freeMemory(), will return the free memory of JVM.</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/2443548795222220259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/07/calling-java-garbage-collector.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/2443548795222220259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/2443548795222220259'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/07/calling-java-garbage-collector.html' title='Calling Java Garbage Collector ?'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-1674803709732756083</id><published>2010-07-27T20:19:00.000-07:00</published><updated>2010-11-24T08:28:01.911-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>Which Objects eligible for Garbage Collection in Java ?</title><content type='html'>The Objects which are eligible for garbage collection are&lt;br /&gt;&lt;br /&gt;1. StringBuffer sb=new stringBuffer(&quot;Hello&quot;);&lt;br /&gt;   System.out.println(sb); // &quot;Hello&quot; is NOT ELIGIBLE here for Garbage Collection.&lt;br /&gt;   sb=null; //&quot;Hello&quot; is ELIGIBLE here for Garbage Collection.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. StringBuffer sb1=new stringBuffer(&quot;Hello&quot;);&lt;br /&gt;   StringBuffer sb2=new stringBuffer(&quot;goodbye&quot;);&lt;br /&gt;   s1=s2; //&quot;Hello&quot; is ELIGIBLE here for Garbage Collection.&lt;br /&gt;&lt;br /&gt;3. Public static Date getDate(){&lt;br /&gt;   Date d2=new Date();&lt;br /&gt;   StringBuffer now=new StringBuffer(d2.toString());&lt;br /&gt;   System.out.println(now);&lt;br /&gt;   return d2;// Here d2 is NOT ELIGIBLE for Garbage Collection. But &lt;span style=&quot;font-weight:bold;&quot;&gt;now &lt;/span&gt;is &lt;br /&gt;                ELIGIBLE for Garbage Collection&lt;br /&gt;   }</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/1674803709732756083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/07/objects-eligible-for-garbage-collection.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/1674803709732756083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/1674803709732756083'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/07/objects-eligible-for-garbage-collection.html' title='Which Objects eligible for Garbage Collection in Java ?'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-9085257166706117074</id><published>2010-07-14T20:20:00.000-07:00</published><updated>2010-07-14T20:21:38.812-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>Advantages of struts2 over struts1.0</title><content type='html'>• Struts 1 supports separate Request Processors (lifecycles) for each module, but all the Actions in the module must share the same lifecycle, Struts 2 supports creating different lifecycles on a per Action basis via Interceptor Stacks. Custom stacks can be created and used with different Actions, as needed.Struts 1 integrates with JSTL, so it uses the JSTL EL, Struts 2 can use JSTL, but the framework also supports a more powerful and flexible expression language called &quot;Object Graph Notation Language&quot; (OGNL).(Object graph navigation language)( It is aimed to be used in J2EE applications with taglibs as expression language.)&lt;br /&gt;• Struts 1 Actions have dependencies on the servlet API since the HttpServletRequest and HttpServletResponse is passed to the execute method when an Action is invoked. Struts 2 Actions are not coupled to a container. Most often the servlet contexts are represented as simple Maps.&lt;br /&gt;• Struts 1 Actions are singletons and must be thread-safe since there will only be one instance of a class to handle all requests for that Action. Struts 2 Action objects are instantiated for each request, so there are no thread-safety issues.&lt;br /&gt;• Struts 1 requires Action classes to extend an abstract base class. A common problem in Struts 1 is programming to abstract classes instead of interfaces. Struts 2 , we can use interfaces.&lt;br /&gt;3. Interceptors&lt;br /&gt;   • These are request pre-processors or post processors&lt;br /&gt;   • Examples create-session, params, prepare, validation, exception and logger.&lt;br /&gt;      o Create-session, which creates HTTPSession.&lt;br /&gt;      o Prepare, to run prepare() method.&lt;br /&gt;      o Fileupload, to validate a file object&lt;br /&gt;      o Exception, handling exceptions.&lt;br /&gt;      o Roles, It checks the allowed roles and disallowed roles using intercept() method.&lt;br /&gt;      o Servlet-config sets the action properties, based on the different interface implemented.&lt;br /&gt;      o Validation, checks the action against all validation rules.</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/9085257166706117074/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/07/advantages-of-struts2-over-struts10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/9085257166706117074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/9085257166706117074'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/07/advantages-of-struts2-over-struts10.html' title='Advantages of struts2 over struts1.0'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-4945172732585720540</id><published>2010-07-12T20:56:00.000-07:00</published><updated>2010-11-24T08:30:10.908-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>What is JDK, JRE, JVM ?</title><content type='html'>&lt;span style=&quot;font-weight:bold;&quot;&gt;JDK (Java Development Kit)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Java Development Kit contains tools needed to develop the Java programs, and JRE to run the programs. The tools include compiler (javac.exe), Java application launcher (java.exe), Appletviewer, etc…&lt;br /&gt;&lt;br /&gt;Compiler converts java code into byte code. Java application launcher opens a JRE, loads the class, and invokes its main method.&lt;br /&gt;&lt;br /&gt;You need JDK, if at all you want to write your own programs, and to compile the m. For running java programs, JRE is sufficient.&lt;br /&gt;&lt;br /&gt;JRE is targeted for execution of Java files&lt;br /&gt;&lt;br /&gt;i.e. JRE = JVM + Java Packages Classes(like util, math, lang, awt,swing etc)+runtime libraries.&lt;br /&gt;&lt;br /&gt;JDK is mainly targeted for java development. I.e. You can create a Java file (with the help of Java packages), compile a Java file and run a java file&lt;br /&gt;JRE (Java Runtime Environment)&lt;br /&gt;&lt;br /&gt;Java Runtime Environment contains JVM, class libraries, and other supporting files. It does not contain any development tools such as compiler, debugger, etc. Actually JVM runs the program, and it uses the class libraries, and other supporting files provided in JRE. If you want to run any java program, you need to have JRE installed in the system&lt;br /&gt;&lt;br /&gt;The Java Virtual Machine provides a platform-independent way of executing code; programmers can concentrate on writing software, without having to be concerned with how or where it will run.&lt;br /&gt;&lt;br /&gt;If u just want to run applets (ex: Online Yahoo games or puzzles), JRE needs to be installed on the machine.&lt;br /&gt;JVM (Java Virtual Machine)&lt;br /&gt;&lt;br /&gt;As we all aware when we compile a Java file, output is not an &#39;exe&#39; but it&#39;s a &#39;.class&#39; file. &#39;.class&#39; file consists of Java byte codes which are understandable by JVM. Java Virtual Machine interprets the byte code into the machine code depending upon the underlying operating system and hardware combination. It is responsible for all the things like garbage collection, array bounds checking, etc… JVM is platform dependent.&lt;br /&gt;&lt;br /&gt;The JVM is called &quot;virtual&quot; because it provides a machine interface that does not depend on the underlying operating system and machine hardware architecture. This independence from hardware and operating system is a cornerstone of the write-once run-anywhere value of Java programs.&lt;br /&gt;&lt;br /&gt;There are different JVM implementations are there. These may differ in things like performance, reliability, speed, etc. These implementations will differ in those areas where Java specification doesn’t mention how to implement the features, like how the garbage collection process works is JVM dependent, Java spec doesn’t define any specific way to do this.</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/4945172732585720540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/07/what-is-jdk-jre-jvm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/4945172732585720540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/4945172732585720540'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/07/what-is-jdk-jre-jvm.html' title='What is JDK, JRE, JVM ?'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-7323759373646109235</id><published>2010-06-30T23:34:00.000-07:00</published><updated>2010-06-30T23:46:20.089-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>Describe HashMap, Hashtable, LinkedHashMap, TreeMap ?</title><content type='html'>HashMap: It is unordered, unsorted map. HashMap allows one &#39;null&#39; values in a collection.&lt;br /&gt;Hashtable: It is same as HashMap but it does not allow null either in keys and values.&lt;br /&gt;LinkedHashMap: It takes insertion order. It is slower than HashMap for adding,deleting but faster iteration&lt;br /&gt;TreeMap: It is a SortedMap. Like TreeSet, TreeMap can define a custom Sort using Comparator or Comparator</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/7323759373646109235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/describe-hashmap-hashtable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/7323759373646109235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/7323759373646109235'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/describe-hashmap-hashtable.html' title='Describe HashMap, Hashtable, LinkedHashMap, TreeMap ?'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-1236057956616822292</id><published>2010-06-29T22:17:00.000-07:00</published><updated>2010-06-29T22:32:51.524-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>Describe HashSet, LinkedHashSet, TreeSet ?</title><content type='html'>HashSet: This is unordered, unsorted set. When we dont want to care about the order and no duplicate it is better to use.&lt;br /&gt;&lt;br /&gt;LinkedHashSet: It is unorder version of HashSet. It maintains doubly linkedlist across all elements. It is better to use than HashSet, because HashSet order is unpredictable.&lt;br /&gt;-&gt; This elements is stored in which they are inserted.&lt;br /&gt;-&gt;When using HashSet and LinkedHashSet the objects you add to them must override hascode() method, if they dont override it allows duplicates.&lt;br /&gt;&lt;br /&gt;TreeSet: &lt;br /&gt;-&gt;it uses Red-Black tree structure.&lt;br /&gt;-&gt;the elements will be in the ascending order according natural order.&lt;br /&gt;-&gt; we can construct a constructor your own rules for what the order should be using a comparable or comparator.</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/1236057956616822292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/describe-hashset-linkedhashset-treeset.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/1236057956616822292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/1236057956616822292'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/describe-hashset-linkedhashset-treeset.html' title='Describe HashSet, LinkedHashSet, TreeSet ?'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-2735983463826996175</id><published>2010-06-29T09:34:00.000-07:00</published><updated>2010-06-29T10:09:19.076-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>Describe ArrayList, Vector, LinkedList?</title><content type='html'>ArrayList:it is ordered but not sorted.it gives fast iteration and fast RandomAccess. it implements RandomAccess interface. choose this over a LinkedList when you need fast iteration. but use not as likely to be doing a lot of insertion,deletion.&lt;br /&gt;&lt;br /&gt;Vector:Vector,HashTable were the two original collection in before java2..&lt;br /&gt;-&gt;Vector methods are Synchronized for thread safety.&lt;br /&gt;-&gt;Vector also implements RandomAccess&lt;br /&gt;-&gt;if ArrayList wants to thread safety it can use Collection(class) utility methods.&lt;br /&gt;&lt;br /&gt;LinkedList:&lt;br /&gt;-&gt;it is ordered by index position&lt;br /&gt;-&gt;it is doubly Linked to one another.&lt;br /&gt;-&gt;LinkedList is implemented by queue so it now supports peck(),poll(),offer().</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/2735983463826996175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/describe-arraylistvectorlinkedlist.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/2735983463826996175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/2735983463826996175'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/describe-arraylistvectorlinkedlist.html' title='Describe ArrayList, Vector, LinkedList?'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-7948186663755421857</id><published>2010-06-29T09:18:00.000-07:00</published><updated>2010-06-29T09:24:42.100-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>About Collection framework ?</title><content type='html'>In collection framework, The key interface we use are&lt;br /&gt;Collection, Set, SortedSet, List, Map, SortedMap, Queue.&lt;br /&gt;&lt;br /&gt;Classes are &lt;br /&gt;Map : HashMap, Hashtable, TreeMap, LinkedHashMap&lt;br /&gt;Set : HashSet, LinkedHashSet, TreeSet&lt;br /&gt;List: ArrayList, Vector, LinkedList.&lt;br /&gt;Queue : PriorityQueue&lt;br /&gt;&lt;br /&gt;The Utility classes available are Collections, Arrays</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/7948186663755421857/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/about-collection-framework.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/7948186663755421857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/7948186663755421857'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/about-collection-framework.html' title='About Collection framework ?'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-1965577304439486308</id><published>2010-06-28T01:43:00.000-07:00</published><updated>2010-06-29T02:13:34.967-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>About JSP implicit Objects</title><content type='html'>By default JSP creates some prebuild objects. These are request, response, session, application, page, out, exception, pageContext.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;request &lt;/span&gt;is a HttpServletRequest Object.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;response &lt;/span&gt;is a HttpServletResponse Object.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;session &lt;/span&gt;is a HttpSession Object.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;config &lt;/span&gt;is a ServletConfig Object.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;application &lt;/span&gt;is a ServletContext Object.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;page &lt;/span&gt;is a JspPage Object.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;pageContext &lt;/span&gt;is a PageContext Object.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;out &lt;/span&gt;is a JspWriter Object.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;exception &lt;/span&gt;is a Throwable Object.</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/1965577304439486308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/about-jsp-implicit-objects.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/1965577304439486308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/1965577304439486308'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/about-jsp-implicit-objects.html' title='About JSP implicit Objects'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-39695120667366643</id><published>2010-06-21T21:13:00.000-07:00</published><updated>2010-11-24T08:43:01.740-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>Tools to be used to run java Applications or Database ?</title><content type='html'>&lt;span style=&quot;font-weight:bold;&quot;&gt;Eclipse or NetBeans&lt;/span&gt; : IDE for java&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;MySQL Query Browser :&lt;/span&gt; GUI tool for MySql&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;TOAD &lt;/span&gt;: GUI tool for Oracle&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;ANT &lt;/span&gt;: Tool for compiling, deploying, running java applications.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;DBVisualizer &lt;/span&gt;: Provides relationship diagram for a database.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;SOAPUI &lt;/span&gt;: Tool for calling a SOAP webservice. It acts like a SOAP Client.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Tomcat &lt;/span&gt;: Its a web server for running java web applications.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;JBOSS &lt;/span&gt;: Its a application server running java Enterprise applications.</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/39695120667366643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/tools-to-be-used-to-run-java-web-or.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/39695120667366643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/39695120667366643'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/tools-to-be-used-to-run-java-web-or.html' title='Tools to be used to run java Applications or Database ?'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-8906844994915480075</id><published>2010-06-21T10:55:00.000-07:00</published><updated>2010-06-21T10:57:06.296-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>Difference between Array and ArrayList ?</title><content type='html'>•array is the one which can save similar data typed elements.And the size is limited. arraylist is a collection which is capable of saving  different data typed objects, And is growable.&lt;br /&gt;•ArrayList can hold objects(custom...or...defined)&lt;br /&gt;•It provides an overloaded method to perform binary search on its objects.&lt;br /&gt;•Array is for homogeneous data. i.e data of same data type.&lt;br /&gt;Whereas Arraylist is for Heterogeneous data.</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/8906844994915480075/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/difference-between-array-and-arraylist.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/8906844994915480075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/8906844994915480075'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/difference-between-array-and-arraylist.html' title='Difference between Array and ArrayList ?'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-8897487931122016925</id><published>2010-06-21T10:39:00.000-07:00</published><updated>2010-06-21T10:53:07.586-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>Lifecycle of all EJB Components</title><content type='html'>Life Cycle of a Stateless Session Bean:&lt;br /&gt;&lt;br /&gt; Since the Stateless session bean does not passivates across method calls therefore a stateless session bean includes only two stages. Whether it does not exist or ready for method invocation. A stateless session bean starts its life cycle when the client first obtains the reference of the session bean. For this, the container performs the dependency injection before invoking the annotated @PostConstruct method if any exists. After invoking the annotated @PostConstruct method the bean will be ready to invoke its method by the client. &lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_ySqX_N7Jj5P3AF5X0EYSwxqHXG3ag9OJ9E5AUU2ht8XNMQcvMkeb0Y0-2BJprXEM5Waha8nKbvkGVWDIKlCoNOFvF_tTfhTVQ5nz9VwKWJB-MmTjxWcj0VrfAj6b3VJ3BhyphenhyphenSc89vZfxW/s1600/1.PNG&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; text-align:center;cursor:hand;width: 320px; height: 180px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_ySqX_N7Jj5P3AF5X0EYSwxqHXG3ag9OJ9E5AUU2ht8XNMQcvMkeb0Y0-2BJprXEM5Waha8nKbvkGVWDIKlCoNOFvF_tTfhTVQ5nz9VwKWJB-MmTjxWcj0VrfAj6b3VJ3BhyphenhyphenSc89vZfxW/s320/1.PNG&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5485284243750050834&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The above figure demonstrates how the Stateless Session Beans are created and destroyed. The container calls the annotated @PreDestroy method while ending the life cycle of the session bean. After this, the bean is ready for garbage collection. &lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Life Cycle of a Stateful Session Bean:&lt;/span&gt; A Stateful session bean starts its life cycle when the client first gets the reference of a stateful session bean. Before invoking the method annotated @PostConstruct the container performs any dependency injection after this the bean is ready. The container may deactivate a bean while in ready state (Generally the container uses the least recently use algorithm to passivates a bean). In the passivate mechanism the bean moves from memory to secondary memory. The container invokes the annotated @PrePassivate method before passivating the bean. If a client invokes a business method on the passivated bean then the container invokes the annotated @PostActivate method to let come the bean in the ready state. &lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGIVS81hvGY09nLtU0rveehh2aZOeuB88v6RPNkqQSp7oPFfEMO0UKeVQghHgUtiS7zrMY-I7SS9_U2fejlol3lGRSQTeSWer23hePSRPpaqcQrvbnpI9pXhYggI2-t-8XSLl5bUyKfm7q/s1600/2.PNG&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 180px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGIVS81hvGY09nLtU0rveehh2aZOeuB88v6RPNkqQSp7oPFfEMO0UKeVQghHgUtiS7zrMY-I7SS9_U2fejlol3lGRSQTeSWer23hePSRPpaqcQrvbnpI9pXhYggI2-t-8XSLl5bUyKfm7q/s320/2.PNG&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5485284857598544402&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The above image shows the various states of the Stateful Session Beans While ending the life cycle of the bean, the client calls the annotated @Remove method after this the container calls the annotated @PreDestroy method which results in the bean to be ready for the garbage collection. &lt;br /&gt;&lt;br /&gt;The EntityManager Interface: The EntityManager API creates and removes persistent entity instances, finds entities by the entity’s primary key, and allows queries to be run on entities. To obtain an EntityManager instance, inject the entity manager into the application component: @PersistenceContext EntityManager em; Managing an &lt;br /&gt;&lt;br /&gt;Entity Instance’s Life Cycle: You manage entity instances by invoking operations on the entity by means of an EntityManager instance. Entity instances are in one of four states: new, managed, detached, or removed. New entity instances have no persistent identity and are not yet associated with a persistence context. Managed entity instances have a persistent identity and are associated with a persistence context. Detached entity instances have a persistent identify and are not currently associated with a persistence context. Removed entity instances have a persistent identity, are associated with a persistent context, and are scheduled for removal from the data store. &lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhObczyc_Ye1Ht1CCKn1_jzyqOGVnTzkz9g8r0Xc8nYyGNUtFEolVhGC2OEVc_S1EN05R8LziCSGCvTi7dCQhYlM2_DfGwZbPIR2qFbcsWro88-67nrOENKGa4jWfD2iXkgtM6f7KTToW9_/s1600/3.PNG&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 180px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhObczyc_Ye1Ht1CCKn1_jzyqOGVnTzkz9g8r0Xc8nYyGNUtFEolVhGC2OEVc_S1EN05R8LziCSGCvTi7dCQhYlM2_DfGwZbPIR2qFbcsWro88-67nrOENKGa4jWfD2iXkgtM6f7KTToW9_/s320/3.PNG&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5485285481835626354&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Different callback annotations supported by Entity Bean are &lt;br /&gt;• @PostLoad&lt;br /&gt;• @PrePersist&lt;br /&gt;• @PreUpdate&lt;br /&gt;• @PreRemove&lt;br /&gt;• @PostPersist&lt;br /&gt;• @PostUpdate&lt;br /&gt;• @PostRemove</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/8897487931122016925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/life-cycle-of-stateless-session-bean.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/8897487931122016925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/8897487931122016925'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/life-cycle-of-stateless-session-bean.html' title='Lifecycle of all EJB Components'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_ySqX_N7Jj5P3AF5X0EYSwxqHXG3ag9OJ9E5AUU2ht8XNMQcvMkeb0Y0-2BJprXEM5Waha8nKbvkGVWDIKlCoNOFvF_tTfhTVQ5nz9VwKWJB-MmTjxWcj0VrfAj6b3VJ3BhyphenhyphenSc89vZfxW/s72-c/1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-2685172421171572265</id><published>2010-06-21T06:24:00.000-07:00</published><updated>2010-06-21T06:34:03.426-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><title type='text'>About InnoDB and MYISAM Table Engines</title><content type='html'>&lt;span style=&quot;font-weight:bold;&quot;&gt;.&lt;/span&gt;Inno DB is a Trasactional support like rollback and savepoint. But MyISAM has no trasactional support.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;.&lt;/span&gt;Inno DB is having row level locking and MyISAM has Table level locking.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;.&lt;/span&gt;Inno DB is having low performance based on above reasons and MyISAM is having  High performance based on above reasons&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;.&lt;/span&gt;Inno DB is having Crash recovery support and MyISAM has no crash recovery.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;.&lt;/span&gt;Inno DB is having forign key support and MyISAM  has no forign key support. &lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;.&lt;/span&gt;InnoDB stores data rows physically in primary key order  MyISAM typically stores them mostly in the order in which they are added.</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/2685172421171572265/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/about-innodb-and-myisam-table-engines.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/2685172421171572265'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/2685172421171572265'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/about-innodb-and-myisam-table-engines.html' title='About InnoDB and MYISAM Table Engines'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-8188679722126269806</id><published>2010-06-21T06:14:00.000-07:00</published><updated>2010-06-21T21:22:56.624-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA / J2EE"/><title type='text'>JSP to Servlet generation.</title><content type='html'>Whenever server gets the request to the jsp file, server (Here example is Tomcat or JBOSS) internally generates a lifecycle methods jspInit(),_jspService(),jspDestroy() in work/catalina/localhost(for Tomact) . Or work\jboss.web\localhost\project\org\apache\jsp(for JBOSS). So the life cycle methods  generation will happen only at the time of server gets the request. Thats why we no need to deploy if we do some changes in JSP file.</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/8188679722126269806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/jsp-to-servlet-generation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/8188679722126269806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/8188679722126269806'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/jsp-to-servlet-generation.html' title='JSP to Servlet generation.'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2619948989181631061.post-9009450049989861091</id><published>2010-06-21T06:00:00.000-07:00</published><updated>2010-06-21T06:10:49.695-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>PHP Email Grabber</title><content type='html'>If you login in the following link with Gmail , yahoo, or any social networking site credentials you can see all contact list from corresponding mail. Try this. Its useful for Email Marketing.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://openinviter.com/demo/&quot; target=&quot;_blank&quot;&gt;http://openinviter.com/demo/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://web-interview-questions.blogspot.com/feeds/9009450049989861091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/php-email-grabber.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/9009450049989861091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2619948989181631061/posts/default/9009450049989861091'/><link rel='alternate' type='text/html' href='http://web-interview-questions.blogspot.com/2010/06/php-email-grabber.html' title='PHP Email Grabber'/><author><name>Kranthi</name><uri>http://www.blogger.com/profile/14044299669953519694</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXRFkcb8Q7gM4dEZz1rscv5hQr2PRrAUBjldFDTlS5QbVV-RYzs8r_aqMfMhLQbkikMCxKJ2QBmRZGKSw0_PItB9kCM1wq1HBzDtg86sB61CZYvPJDuEIUiIeCN6Y5bDU/s220/KRANTHI.JPG'/></author><thr:total>0</thr:total></entry></feed>