<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;DUIMQHg5cCp7ImA9WhRaE0U.&quot;"><id>tag:blogger.com,1999:blog-26851200</id><updated>2012-02-16T02:19:41.628-08:00</updated><category term="Questions and Answers : 51 to 100" /><category term="Questions and Answers : 301 to 370" /><category term="Ask A Java Interview Question" /><category term="J2EE Interview Questions" /><category term="Questions and Answers : 201 to 250" /><category term="Questions and Answers : 1 to 50" /><category term="Questions and Answers : 101 to 150" /><category term="Questions and Answers : 251 to 300" /><category term="My Java Learnings" /><category term="XML Interview Questions" /><category term="Areas of Core Java Interviews" /><category term="Servlet Interview Questions" /><category term="Questions and Answers : 151 - 200" /><category term="Java Language Fundamentals Questions" /><category term="Interview Q's on UML and Design Patterns" /><category term="Java Architect Interview Questions" /><category term="Questions and Answers : 371 to 479" /><title>Java J2EE Interview Questions and Answers</title><subtitle type="html">Java interview questions and answers, Core java questions, JSP interview questions, servlets interview questions, Java architect interview questions, JDBC interview questions, Application servers</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://java-j2ee-interview-questions.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://java-j2ee-interview-questions.blogspot.com/" /><author><name>Noddy</name><uri>http://www.blogger.com/profile/12432932653472595275</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/JavaJ2eeInterviewQuestionsAndAnswers" /><feedburner:info uri="javaj2eeinterviewquestionsandanswers" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;A0YERHc6cSp7ImA9WxFXEUo.&quot;"><id>tag:blogger.com,1999:blog-26851200.post-8825198728058202119</id><published>2010-05-18T03:38:00.000-07:00</published><updated>2010-05-18T03:38:25.919-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-18T03:38:25.919-07:00</app:edited><title>Practical Questions To be asked in Interviews</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Z_H8mV09lIQ3xMo40qzPAtnV8i4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Z_H8mV09lIQ3xMo40qzPAtnV8i4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Z_H8mV09lIQ3xMo40qzPAtnV8i4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Z_H8mV09lIQ3xMo40qzPAtnV8i4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;"&gt;Listed questions are for Interviewer. Its more of a discussion to analyze how a candidate approaches to resolve these practical problems, it also will give an idea of how much grasp technically the candidate has on web technologies - java, j2ee , application servers, databases ..&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;"&gt;These questions dont have any particular answer. These are practical problems which I have faced in&amp;nbsp;web projects executed by my team. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS;"&gt;1. How would one analyze and find solutions to HIGH CPU usage by a web application?&amp;nbsp; The CPU&amp;nbsp;usage shoots&amp;nbsp;close to 100% within 3 days of application server restart, and once the CPU reaches close to 100%, the web application hangs? What could be the probable causes? What would be line of approach to resolve this issue.?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS;"&gt;Basically the candidate who answers this question, should try to reason out the issues which can shoot the CPU usage to 100%.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS;"&gt;The Interviewer should bascially look the approach and discuss to find a solution.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS;"&gt;I have asked this question very frequently and the answers give a very good feedback on the technology grasp of the candidate unlike theorotical questions which have one line answers.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS;"&gt;2. How should a&amp;nbsp; web application authenticate user id / passwords combinations?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS;"&gt;a) should the password be sent in clear text to the server for authentication ?&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS;"&gt;b) should the password be hashed ?&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS;"&gt;c) if hashed, how wud one authenicate the password at server?&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS;"&gt;d) or any other mechanism?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Trebuchet MS;"&gt;3. Any approach to migrate passwords from an existing web application to migrated web application. ?&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26851200-8825198728058202119?l=java-j2ee-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~4/_9KzgS2TR64" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/8825198728058202119?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/8825198728058202119?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~3/_9KzgS2TR64/practical-questions-to-be-asked-in.html" title="Practical Questions To be asked in Interviews" /><author><name>Noddy</name><uri>http://www.blogger.com/profile/12432932653472595275</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://java-j2ee-interview-questions.blogspot.com/2010/05/practical-questions-to-be-asked-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUEFQXw5eCp7ImA9WxBTGUk.&quot;"><id>tag:blogger.com,1999:blog-26851200.post-8343574625183972195</id><published>2009-12-15T23:13:00.000-08:00</published><updated>2009-12-15T23:13:30.220-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-15T23:13:30.220-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="My Java Learnings" /><title>My Java Learnings</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/tdd3x4di3G7SkBFj0k2B1hnugg0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tdd3x4di3G7SkBFj0k2B1hnugg0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/tdd3x4di3G7SkBFj0k2B1hnugg0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tdd3x4di3G7SkBFj0k2B1hnugg0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;strong&gt;&lt;u&gt;Collection&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;set - no duplicate elements&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;list&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;HashSet&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;The iterators returned by this class's iterator method are fail-fast.&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;ListIterator can be used to add/modify elements in a list&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13; font-family: Arial;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Suppose you have a Collection, c, and you want to create another Collection containing the same elements,&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;but with all duplicates eliminated. The following one-liner does the trick &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Collection noDups = new HashSet(c);&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;TreeSet , alphabetically stores the contents.&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Vector is synchronized&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;ArrayList is not synchronized&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Collections.synchronizedList (new ArrayList or any collection object for that case)&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Map : No duplication&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;HashMap : no duplicates allowed&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Collections.sort(list);&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Actually String and Date both implement the Comparable &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Comparator: method compare &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;strong&gt;&lt;u&gt;Internationalization &lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;MessageBundle.properties&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;MessageBundle_en_US.properties&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;ResourceBundle.getBundle("MessageBundle",locale)&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;error messages , GUI labels , date , currencies , &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;ListResourceBundle &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;NumberFormat , to format numbers , currencies, date formats, time formats as per current locale&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;MessageFormat&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;MessageBundle , all messages specific to a locale can be placed here.&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;For Example : MessageBundle_en_US.properties&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13; font-family: Arial;"&gt;&lt;u&gt;Some More Questions&lt;/u&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: #274e13;"&gt;How does java internally behave ?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
System.out.println what is out ? PrintStream &lt;br /&gt;
&lt;br /&gt;
new file(), Transient variables are not persisted.&lt;br /&gt;
&lt;br /&gt;
Suppose If we have variable 'I' in run method, &lt;br /&gt;
&lt;br /&gt;
If I can create one or more thread each thread will occupy a separate copy or same variable will be shared ? &lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
Why there are some null interface in java ? What does it mean ? Give me some null interfaces in JAVA ? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When is the JVM invoked ? &lt;br /&gt;
&lt;span style="background-color: #cccccc; color: black;"&gt;JVM is involved when the "JAVA" command is executed by the application / java program&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Why does EJB needs two interface( Home and Remote Interface) ?&lt;br /&gt;
&lt;br /&gt;
Servlets&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What do mean stateless protocol ? HTTP ? What do we do for maintaining the state&lt;br /&gt;
&lt;br /&gt;
What is the difference in between doPost and doGet methods ?&lt;br /&gt;
&lt;br /&gt;
Difference between rmi and ejbs ? &lt;br /&gt;
&lt;br /&gt;
What is iiop ? &lt;br /&gt;
&lt;br /&gt;
Why cant we invoke methods on ejbs directly ?&lt;br /&gt;
&lt;br /&gt;
Why define Remote Interfaces ?&lt;br /&gt;
&lt;br /&gt;
What is the functionality stubs and skeletons ?&lt;br /&gt;
JDBC insert call ..what is the default behaviour.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26851200-8343574625183972195?l=java-j2ee-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~4/-q8hX20bGa0" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/8343574625183972195?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/8343574625183972195?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~3/-q8hX20bGa0/my-java-learnings.html" title="My Java Learnings" /><author><name>Noddy</name><uri>http://www.blogger.com/profile/12432932653472595275</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://java-j2ee-interview-questions.blogspot.com/2009/12/my-java-learnings.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE8HRH48fCp7ImA9WxBTF0Q.&quot;"><id>tag:blogger.com,1999:blog-26851200.post-3010036835770032658</id><published>2009-12-14T05:20:00.000-08:00</published><updated>2009-12-14T05:20:35.074-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-14T05:20:35.074-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Servlet Interview Questions" /><title>Servlet Interview Questions</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/-wvGy178Z9i6_jUbPbVr4e6xrO4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-wvGy178Z9i6_jUbPbVr4e6xrO4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/-wvGy178Z9i6_jUbPbVr4e6xrO4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-wvGy178Z9i6_jUbPbVr4e6xrO4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;"&gt;What's the difference between servlets and applets?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;"&gt;What are the purpose of having servlets in web application? &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color: #274e13; font-family: Trebuchet MS;"&gt;When parameters one will consider before deciding to have servlet or JSP in your web application?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color: #274e13; font-family: Trebuchet MS;"&gt;What is the signifance of doGet() and doPost()?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color: #274e13; font-family: Trebuchet MS;"&gt;Describe servlet life cycle?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color: #274e13; font-family: Trebuchet MS;"&gt;Describe servlet API hirerachy?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color: #274e13; font-family: Trebuchet MS;"&gt;Significance of servlet context ?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color: #274e13; font-family: Trebuchet MS;"&gt;When to use Forward and sendRedirect?&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26851200-3010036835770032658?l=java-j2ee-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~4/TaU-s-l9tzc" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/3010036835770032658?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/3010036835770032658?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~3/TaU-s-l9tzc/servlet-interview-questions.html" title="Servlet Interview Questions" /><author><name>Noddy</name><uri>http://www.blogger.com/profile/12432932653472595275</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://java-j2ee-interview-questions.blogspot.com/2009/12/servlet-interview-questions.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE4HRH4zcCp7ImA9WxBTF0Q.&quot;"><id>tag:blogger.com,1999:blog-26851200.post-8443054721805418702</id><published>2008-05-10T05:36:00.001-07:00</published><updated>2009-12-14T05:22:15.088-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-14T05:22:15.088-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Ask A Java Interview Question" /><title>Ask A Java Interview Question</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/WOwP9Twnm1lT0G0zGM959rO2ijQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WOwP9Twnm1lT0G0zGM959rO2ijQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/WOwP9Twnm1lT0G0zGM959rO2ijQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WOwP9Twnm1lT0G0zGM959rO2ijQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="color: #003300; font-family: trebuchet ms;"&gt;&lt;strong&gt;Based on the feedback received, I have decided to add a section which will enable to ask questions pertaining to java j2ee interviews and I would possibly try to answer these questions with some examples. You can also ask questions asked during HR rounds which at times I think are more difficult to answer then the technical questions !!&lt;/strong&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26851200-8443054721805418702?l=java-j2ee-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~4/Dqvpc3xcEJE" height="1" width="1"/&gt;</content><link rel="related" href="http://java-j2ee-interview-questions.blogspot.com/" title="Ask A Java Interview Question" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/8443054721805418702?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/8443054721805418702?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~3/Dqvpc3xcEJE/ask-question.html" title="Ask A Java Interview Question" /><author><name>Noddy</name><uri>http://www.blogger.com/profile/12432932653472595275</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://java-j2ee-interview-questions.blogspot.com/2008/05/ask-question.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkEAQns8eyp7ImA9WB5RGEk.&quot;"><id>tag:blogger.com,1999:blog-26851200.post-3669046635629888198</id><published>2007-06-26T02:00:00.000-07:00</published><updated>2007-06-26T02:04:03.573-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-06-26T02:04:03.573-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Java Architect Interview Questions" /><title>Java Architect Interview Questions</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/mLXDgdoAMZ84Kc2NZI4IhozDiXY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mLXDgdoAMZ84Kc2NZI4IhozDiXY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/mLXDgdoAMZ84Kc2NZI4IhozDiXY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mLXDgdoAMZ84Kc2NZI4IhozDiXY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-family:trebuchet ms;"&gt;Java Architect Interview Questions&lt;br /&gt;&lt;br /&gt;1. What do you understand by UML. How to interpret UML diagrams?&lt;br /&gt;2. State the effect of encapsulation, inheritance, and use of interfaces on architectural characteristics?&lt;br /&gt;3. Differentiate between 2 tier, 3 tier and n-tier architectures.&lt;br /&gt;4. How do the following characteristics scalability,performance, high availabilty behave based on the above architecture selected.&lt;br /&gt;5. In what all ways (methods/concepts) can we achieve integration with legacy/n-n-legacy applications using JAVA technologies.&lt;br /&gt;6. List the required classes/interfaces that must be provided for an EJB technology.&lt;br /&gt;7. Distinguish stateful and stateless Session beans.&lt;br /&gt;8. Distinguish Session and Entity beans.&lt;br /&gt;9. Recognize appropriate uses for Entity, Stateful Session, and Stateless Session beans.&lt;br /&gt;10. State the transactional behavior in a given scenario for an enterprise bean method with a specified transactional deployment descriptor.&lt;br /&gt;11.Given a requirement specification detailing security and flexibility needs, identify architectures that would fulfill those requirements.&lt;br /&gt;12. Identify costs and benefits of using an intermediate data-access object between an entity bean and the data resource.&lt;br /&gt;13. State the benefits of bean pooling in an EJB container.&lt;br /&gt;14. State the benefits of Passivation in an EJB container.&lt;br /&gt;15. State the benefit of monitoring of resources in an EJB container.&lt;br /&gt;16. Explain how the EJB container does lifecycle management and has the capability to increase scalability.&lt;br /&gt;17. Given a scenario description, distinguish appropriate from inappropriate protocols to implement that scenario.&lt;br /&gt;18. Identify a protocol, given a list of some of its features, where the protocol is one of the following: HTTP, HTTPS, IIOP, JRMP.&lt;br /&gt;19. Select from a list, common firewall features that might interfere with the normal operation of a given protocol.&lt;br /&gt;20. State the benefits of using design patterns.&lt;br /&gt;21. State the name of a design pattern given the UML diagram and/or a brief description of the pattern's functionality.&lt;br /&gt;22. Select from a list benefits of a specified design pattern.&lt;br /&gt;23. Identify the design pattern associated with a specified J2EE feature.&lt;br /&gt;24. Identify scenarios that are appropriate to implementation using messaging, EJB, or both.&lt;br /&gt;25. List benefits of synchronous and asynchronous messaging.&lt;br /&gt;26. Select scenarios from a list that are appropriate to implementation using synchronous and asynchronous messaging.&lt;br /&gt;27. State three aspects of any application that might need to be varied or customized in different deployment locales.&lt;br /&gt;28. Match the following features of the Java 2 platform with descriptions of their functionality, purpose or typical uses: Properties, Locale, ResourceBundle, Unicode, java.text package, 29. InputStreamReader and OutputStreamWriter.&lt;br /&gt;30. Select from a list security restrictions that Java 2 environments normally impose on applets running in a browser.&lt;br /&gt;31. Given an architectural system specification, identify appropriate locations for implementation of specified security features, and select suitable technologies for implementation of those features. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26851200-3669046635629888198?l=java-j2ee-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~4/6ZO2eyr2hLA" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/3669046635629888198?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/3669046635629888198?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~3/6ZO2eyr2hLA/java-architect-interview-questions.html" title="Java Architect Interview Questions" /><author><name>Noddy</name><uri>http://www.blogger.com/profile/12432932653472595275</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://java-j2ee-interview-questions.blogspot.com/2007/06/java-architect-interview-questions.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUcNRXk4eSp7ImA9WB5TFkQ.&quot;"><id>tag:blogger.com,1999:blog-26851200.post-3812448356133545512</id><published>2007-06-01T03:12:00.000-07:00</published><updated>2007-06-01T03:18:14.731-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-06-01T03:18:14.731-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="XML Interview Questions" /><title>XML Interview Questions</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/uGPkvvqRYygdJakggekyLuPlfWM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uGPkvvqRYygdJakggekyLuPlfWM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/uGPkvvqRYygdJakggekyLuPlfWM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uGPkvvqRYygdJakggekyLuPlfWM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-family:trebuchet ms;"&gt;What is the difference between HTML and XML?&lt;br /&gt;Was XML used in your project? If Yes, why it was decided to use XML ? In shortly, need to know the problem statement and why it was thought to use XML (Merits of XML)?&lt;br /&gt;What XML parser was used in the project ?&lt;br /&gt;Name the XML parser used in the project? and Why ?&lt;br /&gt;Types of Parsers? DOM and SAX ?&lt;br /&gt;When would you decide using a DOM parser or SAX parser?&lt;br /&gt;Can you explain steps encountered in parsing an XML?&lt;br /&gt;Can we validate an XML document?&lt;br /&gt;Differentiate between a document, node and element?&lt;br /&gt;What do you understand by DTD?&lt;br /&gt;What do you understand by Schema?&lt;br /&gt;Given an option how would you go about deciding whether to use DTD or Schema?&lt;br /&gt;Advantages of Schema over DTD ?&lt;br /&gt;What is SOAP?&lt;br /&gt;Do you understand the concept of XSLT?&lt;br /&gt;What is namespace?&lt;br /&gt;What do you understand by JAXP?&lt;br /&gt;What is JDOM?&lt;br /&gt;What do you understand by XPATH?&lt;br /&gt;How do convert an XML into PDF or Excel file?&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26851200-3812448356133545512?l=java-j2ee-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~4/5Eh_NmSNCzg" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/3812448356133545512?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/3812448356133545512?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~3/5Eh_NmSNCzg/xml-interview-questions.html" title="XML Interview Questions" /><author><name>Noddy</name><uri>http://www.blogger.com/profile/12432932653472595275</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://java-j2ee-interview-questions.blogspot.com/2007/06/xml-interview-questions.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C04NSHY6fip7ImA9WBFaFE0.&quot;"><id>tag:blogger.com,1999:blog-26851200.post-4646567363412374144</id><published>2007-05-17T04:37:00.000-07:00</published><updated>2007-05-17T04:39:59.816-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-05-17T04:39:59.816-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Java Language Fundamentals Questions" /><title>Java J2EE Interview Questions and Answers</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/NX8mCBE11wXxlEH_h2TpeLLLlfU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NX8mCBE11wXxlEH_h2TpeLLLlfU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/NX8mCBE11wXxlEH_h2TpeLLLlfU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NX8mCBE11wXxlEH_h2TpeLLLlfU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-family:trebuchet ms;"&gt;      Java Language Fundamentals Questions 1  &lt;br /&gt;&lt;br /&gt;2.         Is Java a pure object oriented language ?&lt;br /&gt;&lt;br /&gt;3.         Explain encapsulation&lt;br /&gt;&lt;br /&gt;4.         Explain inheritance&lt;br /&gt;&lt;br /&gt;5.         Explain polymorphism&lt;br /&gt;&lt;br /&gt;6.         What are classes and  objects? What is the relationship between them?&lt;br /&gt;&lt;br /&gt;7.         What do you understand by API&lt;br /&gt;&lt;br /&gt;8.         Name atleast 10 Java API class you have used while programming&lt;br /&gt;&lt;br /&gt;9.         What are reserved words in Java ?&lt;br /&gt;&lt;br /&gt;10.       What is size of int in Java?&lt;br /&gt;&lt;br /&gt;11.       What is the difference between Java Key words and reserved words?&lt;br /&gt;&lt;br /&gt;12.       What do you understand by private, protected and public?&lt;br /&gt; A.       private, protected and public are access modifiers.&lt;br /&gt;&lt;br /&gt;13.       Public is least restrictive while private is  most  restrictive.&lt;br /&gt;&lt;br /&gt;14.       How many static init can you have?&lt;br /&gt; A.       As many as you can&lt;br /&gt;&lt;br /&gt;15.       What is reference in Java?&lt;br /&gt;&lt;br /&gt;16.       Explain main() method modifiers?&lt;br /&gt;&lt;br /&gt;17.       In system.out.println what is out and println ? Can this be redirected to a file ? How ?&lt;br /&gt;&lt;br /&gt;18.       What is the difference between instanceof and isInstance?&lt;br /&gt;&lt;br /&gt;19.       What is an instance variable and instance method?&lt;br /&gt;&lt;br /&gt;20.       Explain terms subclass and superclass.&lt;br /&gt;&lt;br /&gt;21.       What is the difference between string and stringbuffer ?&lt;br /&gt;&lt;br /&gt;22.       What is the purpose of garbage collection?&lt;br /&gt;A.        The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources may be reclaimed and reused.&lt;br /&gt;&lt;br /&gt;23.       What do you mean by Classpath and Classloader?&lt;br /&gt;A.        Classpath is the path where Compiller  / JRE looks for dependent java sources&lt;br /&gt;&lt;br /&gt;24.       Classloader loads the classes into the Java virtual machine.&lt;br /&gt;&lt;br /&gt;25.       What package in java is implicitly imported&lt;br /&gt;A.        java.lang&lt;br /&gt;&lt;br /&gt;26.       What is the difference between a field variable and  local variable?&lt;br /&gt;A.        A field variable is declared as a member of a class. A local variable is declared in a method (local to a method).&lt;br /&gt;&lt;br /&gt;27.       Significance of this and super() in constructors&lt;br /&gt;&lt;br /&gt;28.       What is a constructor?&lt;br /&gt;&lt;br /&gt;29.       What is reflection? What do you understand by Class.forName()&lt;br /&gt;&lt;br /&gt;30.       Does importing a package imports the subpackages as well?&lt;br /&gt;&lt;br /&gt;31.       What is the difference between declaring a variable and defining a variable?&lt;br /&gt;&lt;br /&gt;32.       What is the difference of signed and unsigned integer?&lt;br /&gt;&lt;br /&gt;33.       Significance of interface in java?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26851200-4646567363412374144?l=java-j2ee-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~4/vLT48JS3lu0" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/4646567363412374144?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/4646567363412374144?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~3/vLT48JS3lu0/java-j2ee-interview-questions-and_17.html" title="Java J2EE Interview Questions and Answers" /><author><name>Noddy</name><uri>http://www.blogger.com/profile/12432932653472595275</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://java-j2ee-interview-questions.blogspot.com/2007/05/java-j2ee-interview-questions-and_17.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0YASX44cCp7ImA9WBFaE00.&quot;"><id>tag:blogger.com,1999:blog-26851200.post-4023574783668106959</id><published>2007-05-16T02:51:00.000-07:00</published><updated>2007-05-16T02:52:28.038-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-05-16T02:52:28.038-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Questions and Answers : 251 to 300" /><title>Java J2EE Interview Questions and Answers</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/k5JK_ZEoK0O5Oh9ZZHPQXGRstb4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/k5JK_ZEoK0O5Oh9ZZHPQXGRstb4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/k5JK_ZEoK0O5Oh9ZZHPQXGRstb4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/k5JK_ZEoK0O5Oh9ZZHPQXGRstb4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;251 What is meant by event handling ?&lt;br /&gt;252 What are all the listeners in java and explain ?&lt;br /&gt;253 What is meant by an adapter class ?&lt;br /&gt;254 What are the types of mouse event listeners ?&lt;br /&gt;255 What are the types of methods in mouse listeners ?&lt;br /&gt;256 What is the difference between panel and frame ?&lt;br /&gt;257 What is the default layout of the panel and frame ?&lt;br /&gt;258 What is meant by controls and types ?&lt;br /&gt;259 What is the difference between a scroll bar and a scroll panel.&lt;br /&gt;260 What is the difference between list and choice ?&lt;br /&gt;261 How to place a component on Windows ?&lt;br /&gt;262 What are the different types of Layouts ?&lt;br /&gt;263 What is meant by CardLayout ?&lt;br /&gt;264 What is the difference between GridLayout and GridBagLayout&lt;br /&gt;265 What is the difference between menuitem and checkboxmenu item.&lt;br /&gt;266 What is meant by vector class, dictionary class , hash table class,and&lt;br /&gt;267 property class ?&lt;br /&gt;268 Which class has no duplicate elements ?&lt;br /&gt;269 What is resource bundle ?&lt;br /&gt;270 What is an enumeration class ?&lt;br /&gt;271 What is meant by Swing ?&lt;br /&gt;272 What is the difference between AWT and Swing ?&lt;br /&gt;273 What is the difference between an applet and a Japplet&lt;br /&gt;274 What are all the components used in Swing ?&lt;br /&gt;275 What is meant by tab pans ?&lt;br /&gt;276 What is the use of JTree ?&lt;br /&gt;277 How can you add and remove nodes in Jtree.&lt;br /&gt;278 What is the method to expand and collapse nodes in a Jtree ?&lt;br /&gt;279 What is the use of JTable ?&lt;br /&gt;280 What is meant by JFC ?&lt;br /&gt;281 What is the class in Swing to change the appearance of the Frame in&lt;br /&gt;284 What is JDBC ?&lt;br /&gt;285 How do you connect to the database ? What are the steps ?&lt;br /&gt;286 What are the drivers available in JDBC ? Explain&lt;br /&gt;287 How can you load the driver ?&lt;br /&gt;288 What are the different types of statement s ?&lt;br /&gt;289 How can you created JDBC statements ?&lt;br /&gt;290 How will you perform transactions using JDBC ?&lt;br /&gt;291 What are the two drivers for web apllication?&lt;br /&gt;292 What are the different types of 2 tier and 3 tier architecture ?&lt;br /&gt;293 How can you retrieve warning in JDBC ?&lt;br /&gt;294 What is the exception thrown by JDBC ?&lt;br /&gt;295 What is meant by PreparedStatement ?&lt;br /&gt;296 What is difference between PreparedStatement and Statement ?&lt;br /&gt;297 How can you call the stored procedures ?&lt;br /&gt;298 What is meant by a ResultSet ?&lt;br /&gt;299 What is the difference between ExecuteUpdate and ExecuteQuery ?&lt;br /&gt;300 How do you know which driver is connected to a database ?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26851200-4023574783668106959?l=java-j2ee-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~4/4__ozXVL4Lk" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/4023574783668106959?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/4023574783668106959?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~3/4__ozXVL4Lk/java-j2ee-interview-questions-and_16.html" title="Java J2EE Interview Questions and Answers" /><author><name>Noddy</name><uri>http://www.blogger.com/profile/12432932653472595275</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://java-j2ee-interview-questions.blogspot.com/2007/05/java-j2ee-interview-questions-and_16.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0cGSHY6eSp7ImA9WBFaE00.&quot;"><id>tag:blogger.com,1999:blog-26851200.post-3056263288826998744</id><published>2007-05-16T02:48:00.000-07:00</published><updated>2007-05-16T02:50:29.811-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-05-16T02:50:29.811-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Questions and Answers : 151 - 200" /><title>Java J2EE Interview Questions</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_KraZD2JAZ9osUf8xqf3q8Nw86Q/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_KraZD2JAZ9osUf8xqf3q8Nw86Q/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/_KraZD2JAZ9osUf8xqf3q8Nw86Q/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_KraZD2JAZ9osUf8xqf3q8Nw86Q/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;151 Checked &amp; Unchecked exception&lt;br /&gt;152 Use of throws exception&lt;br /&gt;153 What is finally in exception handling&lt;br /&gt;154 Vector class&lt;br /&gt;155 What will happen to the Exception object after exception handling&lt;br /&gt;156 Two types of multi-tasking&lt;br /&gt;157 Two ways to create the thread&lt;br /&gt;158 Synchronization&lt;br /&gt;159 I/O Filter&lt;br /&gt;160 How can you retrieve warnings in JDBC&lt;br /&gt;161 Can applet in different page communicate with each other&lt;br /&gt;162 Four driver Manager&lt;br /&gt;163 Features of JDBC 2.0&lt;br /&gt;164 Explain about stored procedures&lt;br /&gt;165 Servlet Life cycle&lt;br /&gt;166 Why do you go for servlet rather than CGI&lt;br /&gt;167 How to generate skeleton &amp;amp; Stub classes&lt;br /&gt;168 Explain lazy activation&lt;br /&gt;169 What is meant by Java ?&lt;br /&gt;170 What is meant by a class ?&lt;br /&gt;171 What is meant by a method ?&lt;br /&gt;172 What are the OOPS concepts in Java ?&lt;br /&gt;173 What is meant by encapsulation ? Explain with an example&lt;br /&gt;174 What is meant by inheritance ? Explain with an example&lt;br /&gt;175 What is meant by polymorphism ? Explain with an example&lt;br /&gt;176 Is multiple inheritance allowed in Java ? Why ?&lt;br /&gt;177 What is meant by Java interpreter ?&lt;br /&gt;178 What is meant by JVM ?&lt;br /&gt;179 What is a compilation unit ?&lt;br /&gt;180 What is meant by identifiers ?&lt;br /&gt;181 What are the different types of modifiers ?&lt;br /&gt;182 What are the access modifiers in Java ?&lt;br /&gt;183 What are the primitive data types in Java ?&lt;br /&gt;184 What is meant by a wrapper class ?&lt;br /&gt;185 What is meant by static variable and static method ?&lt;br /&gt;186 What is meant by Garbage collection ?&lt;br /&gt;187 What is meant by abstract class&lt;br /&gt;188 What is meant by final class, methods and variables ?&lt;br /&gt;189 What is meant by interface ?&lt;br /&gt;190 What is meant by a resource leak ?&lt;br /&gt;191 What is the difference between interface and abstract class ?&lt;br /&gt;192 What is the difference between public private, protected and static&lt;br /&gt;193 What is meant by method overloading ?&lt;br /&gt;194 What is meant by method overriding ?&lt;br /&gt;195 What is singleton class ?&lt;br /&gt;196 What is the difference between an array and a vector ?&lt;br /&gt;197 What is meant by constructor ?&lt;br /&gt;198 What is meant by casting ?&lt;br /&gt;199 What is the difference between final, finally and finalize ?&lt;br /&gt;200 What is meant by packages ?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26851200-3056263288826998744?l=java-j2ee-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~4/_2ht6PYpdGk" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/3056263288826998744?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/3056263288826998744?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~3/_2ht6PYpdGk/java-j2ee-interview-questions_9718.html" title="Java J2EE Interview Questions" /><author><name>Noddy</name><uri>http://www.blogger.com/profile/12432932653472595275</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://java-j2ee-interview-questions.blogspot.com/2007/05/java-j2ee-interview-questions_9718.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak8FRHg-cSp7ImA9WBFaE00.&quot;"><id>tag:blogger.com,1999:blog-26851200.post-3909299796321432984</id><published>2007-05-16T02:45:00.000-07:00</published><updated>2007-05-16T02:46:55.659-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-05-16T02:46:55.659-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Questions and Answers : 51 to 100" /><title>Java J2EE Interview Questions</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/HXG0xPI7MRL-q5Uxxzi5VlOEifg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HXG0xPI7MRL-q5Uxxzi5VlOEifg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/HXG0xPI7MRL-q5Uxxzi5VlOEifg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HXG0xPI7MRL-q5Uxxzi5VlOEifg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;51.What is serialization ?&lt;br /&gt;Ans ) Process of persisting an object.&lt;br /&gt;&lt;br /&gt;52.What is difference RMI registry and OSAgent ?&lt;br /&gt;&lt;br /&gt;53.To a server method, the client wants to send a value 20,&lt;br /&gt;with this value exceeds to 20, a message should be sent to the client ? What will you do for achieving for this ?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;54 What are the benefits of Swing over AWT ?&lt;br /&gt;55 Where the CardLayout is used ?&lt;br /&gt;56 What is the Layout for ToolBar ?&lt;br /&gt;57 What is the difference between Grid and GridbagLayout ?&lt;br /&gt;58 How will you add panel to a Frame ?&lt;br /&gt;59 What is the corresponding Layout for Card in Swing ?&lt;br /&gt;60 What is light weight component ?&lt;br /&gt;63 What is Servlet API used for conneting database ?&lt;br /&gt;64 What is bean ? Where it can be used ?&lt;br /&gt;65 What is difference in between Java Class and Bean ?&lt;br /&gt;66 Can we send object using Sockets ?&lt;br /&gt;67 What is the RMI and Socket ?&lt;br /&gt;68 How to communicate 2 threads each other ?&lt;br /&gt;72 What is the functionality stubs and skeletons ?&lt;br /&gt;74 Diff between Application and Applet ?&lt;br /&gt;75 What is serializable Interface ?&lt;br /&gt;76 What is the difference between CGI and Servlet ?&lt;br /&gt;77 What is the use of Interface ?&lt;br /&gt;78 Why Java is not fully objective oriented ?&lt;br /&gt;79 Why does not support multiple Inheritance ?&lt;br /&gt;80 What it the root class for all Java classes ?&lt;br /&gt;81 What is polymorphism ?&lt;br /&gt;82 Suppose If we have variable 'I' in run method, If I can create one or more thread each thread will occupy a separate copy or same variable will be shared ?&lt;br /&gt;83 In servlets, we are having a web page that is invoking servlets username and password ? which is cheks in the database ? Suppose the second page also If we want to&lt;br /&gt;verify the same information whethe it will connect to the database or it will be used previous information?&lt;br /&gt;&lt;br /&gt;90 What are session variable in Servlets ?&lt;br /&gt;91 What is client server computing ?&lt;br /&gt;93 Why we use OOPS concepts? What is its advantage ?&lt;br /&gt;94 What is the middleware ? What is the functionality of Webserver ?&lt;br /&gt;95 Why Java is not 100 % pure OOPS ?&lt;br /&gt;96 When we will use an Interface and Abstract class ?&lt;br /&gt;97 What is an RMI?&lt;br /&gt;98 How will you pass parameters in RMI ? Why u serialize?&lt;br /&gt;100 What is the main functionality of the Remote Reference Layer ?&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26851200-3909299796321432984?l=java-j2ee-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~4/JXi4E0YShfE" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/3909299796321432984?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/3909299796321432984?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~3/JXi4E0YShfE/java-j2ee-interview-questions_7742.html" title="Java J2EE Interview Questions" /><author><name>Noddy</name><uri>http://www.blogger.com/profile/12432932653472595275</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://java-j2ee-interview-questions.blogspot.com/2007/05/java-j2ee-interview-questions_7742.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkEDSHw9fyp7ImA9WBFaE00.&quot;"><id>tag:blogger.com,1999:blog-26851200.post-8934623303430291309</id><published>2007-05-16T02:42:00.000-07:00</published><updated>2007-05-16T02:44:39.267-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-05-16T02:44:39.267-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Questions and Answers : 371 to 479" /><title>Java J2EE Interview Questions</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/JwRqVrTPHV8QsXYylBL7Hoglg08/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JwRqVrTPHV8QsXYylBL7Hoglg08/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/JwRqVrTPHV8QsXYylBL7Hoglg08/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JwRqVrTPHV8QsXYylBL7Hoglg08/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;371 managed persistent entity bean ?&lt;br /&gt;372 What is J2EE ?&lt;br /&gt;373 What is JTS ?&lt;br /&gt;374 How many entity beans used and how many tables can u use in EJB project ?&lt;br /&gt;375 What is scalable,portability in J2EE?&lt;br /&gt;376 What is Connection pooling?Is it advantageous?&lt;br /&gt;377 Method and class used for Connection pooling ?&lt;br /&gt;378 How to deploy in J2EE(i.e Jar,War file) ?&lt;br /&gt;379 How is entity bean created using Container managed entity bean ?&lt;br /&gt;380 Sotware architechture of EJB ?&lt;br /&gt;381 In Entity bean will the create method in EJB home and ejbCreate in Entity&lt;br /&gt;382 bean have the same parameters ?&lt;br /&gt;383 What methods do u use in Servlet - Applet communication ?&lt;br /&gt;384 What are the types of Servlet ?&lt;br /&gt;385 Difference between HttpServlet and Generic Servlets ?&lt;br /&gt;386 Difference between doGet and doPost ?&lt;br /&gt;387 What are the methods in HttpServlet?&lt;br /&gt;388 What are the types of SessionTracking?&lt;br /&gt;389 What is Cookie ? Why is Cookie used ?&lt;br /&gt;390 If my browser does not support Cookie,and my server sends a cookie&lt;br /&gt;instance What will happen ?&lt;br /&gt;392 Why do u use Session Tracking in HttpServlet ?&lt;br /&gt;393 Can u use javaScript in Servlets ?&lt;br /&gt;394 What is the capacity the doGet can send to the server ?&lt;br /&gt;395 What are the type of protocols used in HttpServlet ?&lt;br /&gt;396 Difference between TCP/IP and IP protocol ?&lt;br /&gt;397 Why do you use UniCastRemoteObject in RMI ?&lt;br /&gt;398 How many interfaces are used in RMI?&lt;br /&gt;399 Can Rmi registry be written in the code, without having to write it in the&lt;br /&gt;command prompt and if yes where?&lt;br /&gt;401 Why is Socket used ?&lt;br /&gt;402 What are the types of JDBC drivers ?&lt;br /&gt;403 Explain the third driver(Native protocol driver) ?&lt;br /&gt;404 Which among the four driver is pure Java driver ?&lt;br /&gt;405 What are the Isolation level in JDBC transaction ?&lt;br /&gt;406 How do you connect with the database ?&lt;br /&gt;407 How do you connect without the Class.forName (" ") ?&lt;br /&gt;408 What does Class.forName return ?&lt;br /&gt;409 What are the types of statement ?&lt;br /&gt;410 Why is preparedStatement,CallableStatement used for?&lt;br /&gt;&lt;br /&gt;412 Difference between AWT and Swing compenents ?&lt;br /&gt;&lt;br /&gt;414 Can the Swing application if you upload in net, be compatible with your&lt;br /&gt;browser?&lt;br /&gt;416 What should you do get your browser compatible with swing components?&lt;br /&gt;417 What are the methods in Applet ?&lt;br /&gt;418 When is init(),start() called ?&lt;br /&gt;419 When you navigate from one applet to another what are the methods called ?&lt;br /&gt;420&lt;br /&gt;421 What is the difference between Trusted and Untrusted Applet ?&lt;br /&gt;422 What is Exception ?&lt;br /&gt;423 What are the ways you can handle exception ?&lt;br /&gt;424 When is try,catch block used ?&lt;br /&gt;425 What is finally method in Exceptions ?&lt;br /&gt;426 What are the types of access modifiers ?&lt;br /&gt;427 What is protected and friendly ?&lt;br /&gt;428 What are the other modifiers ?&lt;br /&gt;429 Is synchronised modifier ?&lt;br /&gt;430 What is meant by polymorphism ?&lt;br /&gt;431 What is inheritance ?&lt;br /&gt;432 What is method Overloading ? What is this in OOPS ?&lt;br /&gt;433 What is method Overriding ? What is it in OOPS ?&lt;br /&gt;434 Does java support multi dimensional arrays ?&lt;br /&gt;435 Is multiple inheritance used in Java ?&lt;br /&gt;436 How do you send a message to the browser in JavaScript ?&lt;br /&gt;437 Does javascript support multidimensional arrays ?&lt;br /&gt;438 Why is XML used mainly?&lt;br /&gt;440 What is DTD ?&lt;br /&gt;441 Is there any tool in java that can create reports ?&lt;br /&gt;456 Describe an object.&lt;br /&gt;457 What are sockets?&lt;br /&gt;458 What are threads?&lt;br /&gt;476 What's the difference between UDP and TCP?&lt;br /&gt;478 What is the difference between a static and non-static field (Java)&lt;br /&gt;479 What's the difference between a stack and a Queue?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26851200-8934623303430291309?l=java-j2ee-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~4/iLXVBPGTSi4" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/8934623303430291309?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/8934623303430291309?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~3/iLXVBPGTSi4/java-j2ee-interview-questions_16.html" title="Java J2EE Interview Questions" /><author><name>Noddy</name><uri>http://www.blogger.com/profile/12432932653472595275</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://java-j2ee-interview-questions.blogspot.com/2007/05/java-j2ee-interview-questions_16.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkUGQXY5fyp7ImA9WBFaE00.&quot;"><id>tag:blogger.com,1999:blog-26851200.post-5228071151785777694</id><published>2007-05-09T04:24:00.000-07:00</published><updated>2007-05-16T02:37:00.827-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-05-16T02:37:00.827-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Questions and Answers : 301 to 370" /><title>Java J2EE Interview Questions and Answers</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bLO6Wnw9_zOT7BzicaUlABgeo7U/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bLO6Wnw9_zOT7BzicaUlABgeo7U/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/bLO6Wnw9_zOT7BzicaUlABgeo7U/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bLO6Wnw9_zOT7BzicaUlABgeo7U/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;302 What is meant by TCP, IP, UDP ?&lt;br /&gt;303 What is the difference between TCP and UDP ?&lt;br /&gt;304 What is a proxy server ?&lt;br /&gt;305 What is meant by URL&lt;br /&gt;306 What is a socket and server sockets ?&lt;br /&gt;307 When MalformedURLException and UnknownHost Exception throws ?&lt;br /&gt;308 What is InetAddress ?&lt;br /&gt;309 What is datagram and datagram packets and datagram sockets ?&lt;br /&gt;310 Write the range of multicast socket IP address ?&lt;br /&gt;311 What is meant by a servlet ?&lt;br /&gt;312 What are the types of servlets ? Explain&lt;br /&gt;313 What is the different between a Servlet and a CGI.&lt;br /&gt;314 What is the difference between 2 types of Servlets ?&lt;br /&gt;315 What is the type of method for sending request from HTTP server ?&lt;br /&gt;316 What are the exceptions thrown by Servlets ? Why ?&lt;br /&gt;317 What is the life cycle of a servlet ?&lt;br /&gt;318 What is meant by cookies ?&lt;br /&gt;319 What is HTTP Session ?&lt;br /&gt;320 What is the difference between GET and POST methods ?&lt;br /&gt;321 How can you run a Servlet Program ?&lt;br /&gt;322 How to commuincate between an applet and a servlet ?&lt;br /&gt;323 What is a Servlet-to-Servlet communcation ?&lt;br /&gt;324 What is Session Tracking ?&lt;br /&gt;325 What are the security issues in Servlets ?&lt;br /&gt;326 What is HTTP Tunneling&lt;br /&gt;327 How do you load an image in a Servlet ?&lt;br /&gt;328 What is Servlet Chaining ?&lt;br /&gt;329 What is URL Rewriting ?&lt;br /&gt;330 What is context switching ?&lt;br /&gt;331 What is meant by RMI ?&lt;br /&gt;332 Explain RMI Architecture ?&lt;br /&gt;333 What is meant by a stub ?&lt;br /&gt;334 What is meant by a skelotn ?&lt;br /&gt;335 What is meant by serialisation and deserialisation ?&lt;br /&gt;336 What is meant by RRL ?&lt;br /&gt;337 What is the use of TL ?&lt;br /&gt;338 What is RMI Registry ?&lt;br /&gt;339 What is rmic ?&lt;br /&gt;340 How will you pass parameter in RMI ?&lt;br /&gt;341 What exceptions are thrown by RMI ?&lt;br /&gt;342 What are the steps involved in RMI ?&lt;br /&gt;343 What is meant by bind(), rebind(), unbind() and lookup() methods&lt;br /&gt;344 What are the advanatages of RMI ?&lt;br /&gt;345 What is JNI ?&lt;br /&gt;346 What is Remote Interface ?&lt;br /&gt;347 What class is used to create Server side object ?&lt;br /&gt;348 What class is used to bind the server object with RMI Registry ?&lt;br /&gt;349 What is the use of getWriter method ?&lt;br /&gt;350 What is meant by Javabeans ?&lt;br /&gt;351 What is JAR file ?&lt;br /&gt;352 What is meant by manifest files ?&lt;br /&gt;353 What is Introspection ?&lt;br /&gt;354 What are the steps involved to create a bean ?&lt;br /&gt;355 Say any two properties in Beans ?&lt;br /&gt;356 What is persistence ?&lt;br /&gt;357 What is the use of beaninfo ?&lt;br /&gt;358 What are the interfaces you used in Beans ?&lt;br /&gt;359 What are the classes you used in Beans ?&lt;br /&gt;360 What is Entity Bean and Session Bean ?&lt;br /&gt;361 What are the methods of Entity Bean?&lt;br /&gt;362 How does Stateful Session bean store its state ?&lt;br /&gt;363 Why does Stateless Session bean not store its state even though it has&lt;br /&gt;364 ejbActivate and ejbPassivate ?&lt;br /&gt;365 What are the services provided by the container ?&lt;br /&gt;366 Types of transaction ?&lt;br /&gt;367 What is bean managed transaction ?&lt;br /&gt;368 Why does EJB needs two interface( Home and Remote Interface) ?&lt;br /&gt;369 What are transaction attributes ?&lt;br /&gt;370 What is the difference between Container managed persistent bean and Bean&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26851200-5228071151785777694?l=java-j2ee-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~4/s2kFDUFk10o" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/5228071151785777694?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/5228071151785777694?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~3/s2kFDUFk10o/java-j2ee-interview-questions-and_924.html" title="Java J2EE Interview Questions and Answers" /><author><name>Noddy</name><uri>http://www.blogger.com/profile/12432932653472595275</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://java-j2ee-interview-questions.blogspot.com/2007/05/java-j2ee-interview-questions-and_924.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0YBSH07fCp7ImA9WBFaE00.&quot;"><id>tag:blogger.com,1999:blog-26851200.post-4332114027270271666</id><published>2007-05-09T04:21:00.000-07:00</published><updated>2007-05-16T02:52:39.304-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-05-16T02:52:39.304-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Questions and Answers : 201 to 250" /><title>Java J2EE Interview Questions and Answers</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0rNUGyfwLkkmf1jYydb3iuTZgFA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0rNUGyfwLkkmf1jYydb3iuTZgFA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0rNUGyfwLkkmf1jYydb3iuTZgFA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0rNUGyfwLkkmf1jYydb3iuTZgFA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-family:trebuchet ms;"&gt;201 Name 2 classes that can store arbitrary number of objects ?&lt;br /&gt;202 What is the difference between java.applet.* and java.applet.Applet ?&lt;br /&gt;203 What is a default package ?&lt;br /&gt;204 What is meant by a super class and how can you call a super class ?&lt;br /&gt;205 What is anonymous class ?&lt;br /&gt;206 Name interfaces without a method ?&lt;br /&gt;207 What is the use of an interface ?&lt;br /&gt;208 What is a serializable interface ?&lt;br /&gt;209 How to prevent field from serialization ?&lt;br /&gt;210 What is meant by exception ?&lt;br /&gt;211 How can you avoid the runtime exception ?&lt;br /&gt;212 What is the difference between throw and throws ?&lt;br /&gt;213 What is the use of finally ?&lt;br /&gt;214 Can multiple catch statements be used in exceptions ?&lt;br /&gt;215 Is it possible to write a try within a try statement ?&lt;br /&gt;216 What is the method to find if the object exited or not ?&lt;br /&gt;217 What is meant by a Thread ?&lt;br /&gt;218 What is meant by multi-threading ?&lt;br /&gt;219 What is the 2 way of creating a thread ? Which is the best way and why ?&lt;br /&gt;220 What is the method to find if a thread is active or not ?&lt;br /&gt;221 What are the thread-to-thread communcation ?&lt;br /&gt;222 What is the difference between sleep and suspend ?&lt;br /&gt;223 Can thread become a member of another thread ?&lt;br /&gt;224 What is meant by deadlock ?&lt;br /&gt;225 How can you avoid a deadlock ?&lt;br /&gt;226 What are the three typs of priority ?&lt;br /&gt;227 What is the use of synchronizations ?&lt;br /&gt;228 Garbage collector thread belongs to which priority ?&lt;br /&gt;229 What is meant by time-slicing ?&lt;br /&gt;230 What is the use of ‘this’ ?&lt;br /&gt;231 How can you find the length and capacity of a string buffer ?&lt;br /&gt;232 How to compare two strings ?&lt;br /&gt;233 What are the interfaces defined by Java.lang ?&lt;br /&gt;234 What is the purpose of run-time class and system class&lt;br /&gt;235 What is meant by Stream and Types ?&lt;br /&gt;236 What is the method used to clear the buffer ?&lt;br /&gt;237 What is meant by Stream Tokenizer ?&lt;br /&gt;238 What is serialization and de-serialisation ?&lt;br /&gt;239 What is meant by Applet ?&lt;br /&gt;240 How to find the host from which the Applet has originated ?&lt;br /&gt;241 What is the life cycle of an Applet ?&lt;br /&gt;242 How do you load an HTML page from an Applet ?&lt;br /&gt;243 What is meant by Applet Stub Interface ?&lt;br /&gt;244 What is meant by getCodeBase and getDocumentBase method ?&lt;br /&gt;245 How can you call an applet from a HTML file&lt;br /&gt;246 What is meant by Applet Flickering ?&lt;br /&gt;247 What is the use of parameter tag ?&lt;br /&gt;248 What is audio clip Interface and what are all the methods in it ?&lt;br /&gt;249 What is the difference between getAppletInfo and getParameterInfo ?&lt;br /&gt;250 How to communicate between applet and an applet ?&lt;br /&gt;251 What is meant by event handling ?&lt;br /&gt;252 What are all the listeners in java and explain ?&lt;br /&gt;253 What is meant by an adapter class ?&lt;br /&gt;254 What are the types of mouse event listeners ?&lt;br /&gt;255 What are the types of methods in mouse listeners ?&lt;br /&gt;256 What is the difference between panel and frame ?&lt;br /&gt;257 What is the default layout of the panel and frame ?&lt;br /&gt;258 What is meant by controls and types ?&lt;br /&gt;259 What is the difference between a scroll bar and a scroll panel.&lt;br /&gt;260 What is the difference between list and choice ?&lt;br /&gt;261 How to place a component on Windows ?&lt;br /&gt;262 What are the different types of Layouts ?&lt;br /&gt;263 What is meant by CardLayout ?&lt;br /&gt;264 What is the difference between GridLayout and GridBagLayout&lt;br /&gt;265 What is the difference between menuitem and checkboxmenu item.&lt;br /&gt;266 What is meant by vector class, dictionary class , hash table class,and&lt;br /&gt;267 property class ?&lt;br /&gt;268 Which class has no duplicate elements ?&lt;br /&gt;269 What is resource bundle ?&lt;br /&gt;270 What is an enumeration class ?&lt;br /&gt;271 What is meant by Swing ?&lt;br /&gt;272 What is the difference between AWT and Swing ?&lt;br /&gt;273 What is the difference between an applet and a Japplet&lt;br /&gt;274 What are all the components used in Swing ?&lt;br /&gt;275 What is meant by tab pans ?&lt;br /&gt;276 What is the use of JTree ?&lt;br /&gt;277 How can you add and remove nodes in Jtree.&lt;br /&gt;278 What is the method to expand and collapse nodes in a Jtree ?&lt;br /&gt;279 What is the use of JTable ?&lt;br /&gt;280 What is meant by JFC ?&lt;br /&gt;281 What is the class in Swing to change the appearance of the Frame in&lt;br /&gt;284 What is JDBC ?&lt;br /&gt;285 How do you connect to the database ? What are the steps ?&lt;br /&gt;286 What are the drivers available in JDBC ? Explain&lt;br /&gt;287 How can you load the driver ?&lt;br /&gt;288 What are the different types of statement s ?&lt;br /&gt;289 How can you created JDBC statements ?&lt;br /&gt;290 How will you perform transactions using JDBC ?&lt;br /&gt;291 What are the two drivers for web apllication?&lt;br /&gt;292 What are the different types of 2 tier and 3 tier architecture ?&lt;br /&gt;293 How can you retrieve warning in JDBC ?&lt;br /&gt;294 What is the exception thrown by JDBC ?&lt;br /&gt;295 What is meant by PreparedStatement ?&lt;br /&gt;296 What is difference between PreparedStatement and Statement ?&lt;br /&gt;297 How can you call the stored procedures ?&lt;br /&gt;298 What is meant by a ResultSet ?&lt;br /&gt;299 What is the difference between ExecuteUpdate and ExecuteQuery ?&lt;br /&gt;300 How do you know which driver is connected to a database ?&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26851200-4332114027270271666?l=java-j2ee-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~4/EAipdzkL7gM" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/4332114027270271666?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/4332114027270271666?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~3/EAipdzkL7gM/java-j2ee-interview-questions-and_09.html" title="Java J2EE Interview Questions and Answers" /><author><name>Noddy</name><uri>http://www.blogger.com/profile/12432932653472595275</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://java-j2ee-interview-questions.blogspot.com/2007/05/java-j2ee-interview-questions-and_09.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak4DQ3k6cCp7ImA9WBFaE00.&quot;"><id>tag:blogger.com,1999:blog-26851200.post-8338718514496842272</id><published>2007-05-09T04:17:00.000-07:00</published><updated>2007-05-16T02:49:32.718-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-05-16T02:49:32.718-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Questions and Answers : 101 to 150" /><title>Java J2EE Interview Questions and Answers</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/olcfTg6lgBd_-zh6N_Vsghu6zxM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/olcfTg6lgBd_-zh6N_Vsghu6zxM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/olcfTg6lgBd_-zh6N_Vsghu6zxM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/olcfTg6lgBd_-zh6N_Vsghu6zxM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-family:trebuchet ms;"&gt;101 How do you download stubs from a Remote place ?&lt;br /&gt;&lt;br /&gt;104 What is the main functionality of the Prepared Statement ?&lt;br /&gt;105 What is meant by static query and dynamic query ?&lt;br /&gt;&lt;br /&gt;107 What is meant by Servlet? What are the parameters of the service method ?&lt;br /&gt;108 What is meant by Session ? Tell me something about HTTPSession Class ? How do you invoke a Servelt? What is the difference in between doPost and doGet methods ?&lt;br /&gt;109 What is the difference in between the HTTPServlet and Generic Servlet ? Expalin their methods ? Tell me their parameter names also ?&lt;br /&gt;110 Have you used threads in Servelet ?&lt;br /&gt;111 Write a program on RMI and JDBC using StoredProcedure ?&lt;br /&gt;&lt;br /&gt;113 In a Container there are 5 components. I want to display all the components names, how will you do that one ?&lt;br /&gt;114 Why there are some null interface in java ? What does it mean ? Give me some null interfaces in JAVA ?&lt;br /&gt;&lt;br /&gt;116 What is meant by class loader ? How many types are there? When will we use them ?&lt;br /&gt;117 How do you load an Image in a Servlet ?&lt;br /&gt;118 What is meant by flickering ?&lt;br /&gt;119 What is meant by distributed Application ? Why we are using that in our applications ?&lt;br /&gt;120 What is the functionality of the stub ?&lt;br /&gt;&lt;br /&gt;122 What is the latest version of JDBC ? What are the new features are added in that ?&lt;br /&gt;123 Explain 2 tier and 3 -tier Architecture ?&lt;br /&gt;124 What is the role of the webserver ?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;127 What is meant by cookies ? Explain ?&lt;br /&gt;132 Public static void main – Explain What are command line arguments&lt;br /&gt;133 Difference between String &amp; StringBuffer&lt;br /&gt;134 Wrapper class. Is String a Wrapper Class&lt;br /&gt;135 What are the restriction for static method&lt;br /&gt;136 Purpose of the file class&lt;br /&gt;137 Default modifier in Interface&lt;br /&gt;138 Can abstract be declared as Final&lt;br /&gt;139 Can we declare variables inside a method as Final Variables&lt;br /&gt;140 What is the package concept and use of package&lt;br /&gt;141 How can a dead thread be started&lt;br /&gt;142 Difference between Applet &amp;amp; Application&lt;br /&gt;143 Life cycle of the Applet&lt;br /&gt;144 Can Applet have constructors&lt;br /&gt;145 Differeence between canvas class &amp; graphics class&lt;br /&gt;146 Explain about Superclass &amp;amp; subclass&lt;br /&gt;147 Difference between TCP &amp;amp; UDP&lt;br /&gt;&lt;br /&gt;149 Explain Stream Tokenizer&lt;br /&gt;150 What is the difference between two types of threads&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26851200-8338718514496842272?l=java-j2ee-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~4/sF_CshU1Euo" height="1" width="1"/&gt;</content><link rel="related" href="http://questions-and-answers-101-to-200.com" title="Java J2EE Interview Questions and Answers" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/8338718514496842272?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/8338718514496842272?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~3/sF_CshU1Euo/java-j2ee-interview-questions-and.html" title="Java J2EE Interview Questions and Answers" /><author><name>Noddy</name><uri>http://www.blogger.com/profile/12432932653472595275</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://java-j2ee-interview-questions.blogspot.com/2007/05/java-j2ee-interview-questions-and.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU8ERng6fyp7ImA9WBFQFU0.&quot;"><id>tag:blogger.com,1999:blog-26851200.post-3349926277724249020</id><published>2007-03-08T02:08:00.000-08:00</published><updated>2007-03-09T22:23:27.617-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-03-09T22:23:27.617-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="J2EE Interview Questions" /><title>J2EE Interview Questions</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/GS2us2haLpUifED9M_rqwbezvFE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GS2us2haLpUifED9M_rqwbezvFE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/GS2us2haLpUifED9M_rqwbezvFE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GS2us2haLpUifED9M_rqwbezvFE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;J2EE Interview Questions&lt;/p&gt;&lt;p&gt;1. What do you understand by the term J2EE?&lt;br /&gt;J2EE is a specification. provides middleware services.&lt;br /&gt;EJB JDBC JNDI JMS JavaMail JTA Servlets JSPs Connectors JAAS&lt;br /&gt;&lt;br /&gt;EJB : is Server Side component architecture for developing distributed applications.&lt;br /&gt;Developers need to concentrate only on business logic.&lt;br /&gt;The middleware services are provided by appserver.&lt;br /&gt;(transaction management,persistence, threading,concurreny )&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Session Beans : Model processes&lt;br /&gt;Entity Beans : Model data&lt;br /&gt;Message Driven beans : Similar to session beans. Invoked only by sending messages.&lt;br /&gt;&lt;br /&gt;2. Diff between RMI and EJB&lt;br /&gt;&lt;br /&gt;EJB uses RMI technology.&lt;br /&gt;We have to declare the middleware services needed by the EJB  in a descriptor.&lt;br /&gt;The Appserver will generate stubs for the same.&lt;br /&gt;&lt;br /&gt;RMI : one has to write the middleware services. (txn mgmt, persitence.)&lt;br /&gt;&lt;br /&gt;EJB cannot be invoked directly by remote clients because there are not network enabled.&lt;br /&gt;Location transparency.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. How many tiers does an J2EE application have? Explain multi-tier applications?&lt;br /&gt;&lt;br /&gt;4. What is a web component?&lt;br /&gt;A web componenet is a software entity which runs on a web server, handles requests and generates dynamic web content.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;5. What is a web container?&lt;br /&gt; Runtime environment for servlets and jsp&lt;br /&gt; Manages lifecycle of instances&lt;br /&gt; Supports HTTP&lt;br /&gt;&lt;/p&gt;&lt;p&gt;6. Should web container always be a part of web server?&lt;br /&gt;No.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;7.What are servlets?&lt;br /&gt;8. What are JSP’s?&lt;br /&gt;9.What are web services?&lt;br /&gt;10.Explain SOA?&lt;br /&gt;11. Explain EJB containers?&lt;br /&gt;12.What is the purpose of  init() in servlet class?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;13. Can servlets have constructors? Can they be used for initializing servlets instead of init()&lt;br /&gt;Yes. But we shouldn’t. Reason being init has access to servlet config and servlet context object , constructors won’t.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;14.Name JSP scripting elements?&lt;br /&gt;declarations, scriptlets, expressions.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;15.What is SingleThreadModel ?&lt;br /&gt;16. How to implement a thread-safe JSP page? What directive should be added?&lt;/p&gt;&lt;p&gt;‹ %@ page isThreadSafe="false" %&lt;/p&gt;&lt;p&gt;&lt;br /&gt;17 .How can we  include static files within a JSP page?&lt;br /&gt;Answer: using the JSP include directive.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;18.Distinguish between servletconfig and servlet context?&lt;br /&gt;19.What is the difference in between doPost and doGet methods ?&lt;br /&gt;20.Why does EJB needs two interface( Home and Remote Interface) ?&lt;br /&gt;21.Explain deployment descriptors?&lt;br /&gt;22.Why cant we invoke methods on ejbs directly ?&lt;br /&gt;23.Explain clustering and fault tolerance&lt;br /&gt;24.How would you go about analyzing performance of the application&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Application performance testing&lt;br /&gt;&lt;br /&gt;When performance testing a Web application, several requirements must be&lt;br /&gt;determined either through interpretation of data from an existing application that&lt;br /&gt;performs similar work. Those requirements are:&lt;br /&gt;&lt;br /&gt; User base&lt;br /&gt;What is the expected number of users that will access this application? This is&lt;br /&gt;generally expressed in hits per month, day, hour, or minute depending on&lt;br /&gt;volumes.&lt;br /&gt;&lt;br /&gt; Total concurrent users&lt;br /&gt;&lt;br /&gt;During a peak interval, what is the maximum possible number of users&lt;br /&gt;accessing the application at the same time.&lt;br /&gt;&lt;br /&gt; Peak request rate&lt;br /&gt;How many pages will need to be served per second?&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26851200-3349926277724249020?l=java-j2ee-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~4/nknL77mvz1g" height="1" width="1"/&gt;</content><link rel="related" href="http://java-j2ee-interview-questions.blogspot.com/j2ee" title="J2EE Interview Questions" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/3349926277724249020?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/3349926277724249020?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~3/nknL77mvz1g/j2ee-interview-questions-1.html" title="J2EE Interview Questions" /><author><name>Noddy</name><uri>http://www.blogger.com/profile/12432932653472595275</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://java-j2ee-interview-questions.blogspot.com/2007/03/j2ee-interview-questions-1.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUAAQnoyeCp7ImA9WBFQFU0.&quot;"><id>tag:blogger.com,1999:blog-26851200.post-5967721799393043987</id><published>2007-03-08T01:47:00.000-08:00</published><updated>2007-03-09T22:22:23.490-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-03-09T22:22:23.490-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Areas of Core Java Interviews" /><title>Core Java Interviews</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/sWTn3OqauUfw92a8ClPhj7EEiMI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sWTn3OqauUfw92a8ClPhj7EEiMI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/sWTn3OqauUfw92a8ClPhj7EEiMI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sWTn3OqauUfw92a8ClPhj7EEiMI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Listed here are areas from which one can possibly expect questions in Java Interviews.&lt;br /&gt;Also I have mentioned some understanding on few important topics.&lt;br /&gt;&lt;br /&gt;1. objects&lt;br /&gt;                  a. polymorphism&lt;br /&gt;                  b. inheritance&lt;br /&gt;                  c. encapsulation&lt;br /&gt;                  d. abstraction&lt;br /&gt;                 &lt;br /&gt;                  equals() method performs deep checking.&lt;br /&gt;                  Every class should override this method to perform object equality.&lt;br /&gt;                 &lt;br /&gt;                  == performs shallow checking. It compares the references.&lt;br /&gt;                                         &lt;br /&gt;2.  strings&lt;br /&gt;                  a. string equality&lt;br /&gt;                  b. immutable&lt;br /&gt;                 &lt;br /&gt;                  a + b + c  =  new StringBuffer().append(a).append(b).append(c).toString(); &lt;br /&gt;                  StringBuffers&lt;br /&gt;                             &lt;br /&gt;                 &lt;br /&gt;3.  exception handling.&lt;br /&gt;                  a. throwable&lt;br /&gt;                  b. exceptions and errors&lt;br /&gt;                  c. checked exceptions&lt;br /&gt;                  d. overriding exceptions&lt;br /&gt;&lt;br /&gt;4.  threads&lt;br /&gt;                  a. wait,notify,notifyall&lt;br /&gt;                  b. Ready state&lt;br /&gt;                  c. synchronization&lt;br /&gt;                  d. sleep&lt;br /&gt;                  e. interrupt exception&lt;br /&gt;                 &lt;br /&gt;                  Collections&lt;br /&gt;                 &lt;br /&gt;                  Collection&lt;br /&gt;                  List or Sequence : one item following other&lt;br /&gt;                  eSet : same value cannot be added twice&lt;br /&gt;                  Map    : Key value pair&lt;br /&gt;                 &lt;br /&gt;                  Vector : ordered list&lt;br /&gt;&lt;br /&gt;5.  i/o.&lt;br /&gt;                  System.out.println : OUT is printStream            &lt;br /&gt;                  System.setOut&lt;br /&gt;                  System.setIn&lt;br /&gt;                  System.setErr                       &lt;br /&gt;                  new File() does not create a file in file system.              &lt;br /&gt;     &lt;br /&gt;6.  Serialization : Persisting an object to a file system.&lt;br /&gt;                  Persist an object beyond the current application instance.&lt;br /&gt;                  Marker interface.&lt;br /&gt;                  ObjecOutputStream &lt;br /&gt;                  Transient variables are not persisted.&lt;br /&gt;&lt;br /&gt;7.  garbage collection&lt;br /&gt;                  Object is no longer being referenced in a program.&lt;br /&gt;                  The heap used by the object can be recycled.&lt;br /&gt;                  a. system.gc()&lt;br /&gt;                  b. system.runFinalization()&lt;br /&gt;                  c. finalize method is called before garbage collection. This method can be used for closing open connections,file i/o.&lt;br /&gt;                 &lt;br /&gt;                  Algorithims : eg Mark and sweep            &lt;br /&gt;                  Define a set of roots and determining reachability from the roots.                &lt;br /&gt;                  Increasing heap size , less frequency of GB, more duration for GB.                          &lt;br /&gt;&lt;br /&gt;8.  jvm&lt;br /&gt;&lt;br /&gt;                  loading : given the class name determine the binary form for the class&lt;br /&gt;                  linking : verfication, Preparation and Resolution&lt;br /&gt;                  verification : checks well formedness and semantic reqs of java language and jvm&lt;br /&gt;                  Preparation : storage&lt;br /&gt;                  intialization : execute the static intializers for the class and class variable initialization&lt;br /&gt;                 &lt;br /&gt;                  JVM consists of&lt;br /&gt;                  1. CLassLoader System&lt;br /&gt;                  2. Execution Engine&lt;br /&gt;                  3. Data Areas. : This has a Method Area and Heap. Common for all threads.&lt;br /&gt;                  Stack is allocated for each thread (local variables are created on stack)&lt;br /&gt;                                                                                                                             &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;9.  servlets&lt;br /&gt;                                          Define&lt;br /&gt;                                          Lifecycle of servlets&lt;br /&gt;                                          Session Tracking&lt;br /&gt;                                                                  1. URL Rewritting&lt;br /&gt;                                                                  2. Cookies&lt;br /&gt;                                                                  3. Hidden form fields&lt;br /&gt;                                                                  4. Session Mgmt&lt;br /&gt;                                                                 &lt;br /&gt;                                                                  Single threading model.&lt;br /&gt;                                                                 &lt;br /&gt;                                                                  Define all instance variable for a servlet in a factory class e.g instance data&lt;br /&gt;                                                                 &lt;br /&gt;                                                                  Http Servlets&lt;br /&gt;                                                                  FTP Servlets&lt;br /&gt;                                                                  Telnet Servlets&lt;br /&gt;                             &lt;br /&gt;10. jsp&lt;br /&gt;                                         &lt;br /&gt;                                         &lt;br /&gt;&lt;br /&gt;11. rmi,ejb&lt;br /&gt;                              EJB&lt;br /&gt;                                                      session beans&lt;br /&gt;                                                      entity beans&lt;br /&gt;                                                      Lifecycle&lt;br /&gt;                                                      Transaction Mgmt&lt;br /&gt;                                                     &lt;br /&gt;                                                     &lt;br /&gt;&lt;br /&gt;12. websphere&lt;br /&gt;                                          AAT&lt;br /&gt;                                          Deployment&lt;br /&gt;                                          .ear , .war&lt;br /&gt;                                          web module&lt;br /&gt;                                          ejb module&lt;br /&gt;                                          virtual hosts&lt;br /&gt;                                          clones&lt;br /&gt;                                          server groups&lt;br /&gt;                                          Admin console&lt;br /&gt;                                          Application server&lt;br /&gt;                                          Class loading -- classes , /lib/ext/ , lib/app/ ,&lt;br /&gt;                                          Module visibilty&lt;br /&gt;                                          jvm properties&lt;br /&gt;                                          DataSources&lt;br /&gt;                                         &lt;br /&gt;                                         &lt;br /&gt;&lt;br /&gt;13. xml&lt;br /&gt;                              DOM&lt;br /&gt;                              SAX&lt;br /&gt;                              parsers&lt;br /&gt;                              HTML/XML comparision&lt;br /&gt;                             &lt;br /&gt;14. xsl&lt;br /&gt;                              processing&lt;br /&gt;                              commands&lt;br /&gt;                             &lt;br /&gt;                                         &lt;br /&gt;&lt;br /&gt;15. jdbc&lt;br /&gt;16. jndi&lt;br /&gt;17. jms&lt;br /&gt;18. sql, pl/sql&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Stack&lt;br /&gt;Heap&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Java Bytecodes : machine instructions for jvm. (.class file). Instructions specify operations and operands.&lt;br /&gt;Architecture independent instructions.&lt;br /&gt;These are interpreted by jvm and converted into native m/c code which is exceuted.&lt;br /&gt;&lt;br /&gt;JIT compilers : Intrepret bytecodes and translate the same into m/c native code. These are stored on the m/c&lt;br /&gt;It uses the same for execution.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Abstract classes cannot be Instantiated&lt;br /&gt;Final classes cannot be extended&lt;br /&gt;&lt;br /&gt;Signature of the method: Method Name and Aruguments&lt;br /&gt;Overloaded Methods : Same Method Name ( Different arguments), different return type&lt;br /&gt;OverRiding Methods : Same Name,arguments and Return Type.  Their access cannot be narrowed.&lt;br /&gt;&lt;br /&gt;Class : template for creating objects. Defines state and state&lt;br /&gt;Object : Instance of a class&lt;br /&gt;&lt;br /&gt;Objects are bound at Runtime (type of the object reference)&lt;br /&gt;Varaibles are bound at compile time (class of the object reference)&lt;br /&gt;&lt;br /&gt;ChecKed Exception : JVM does compile time checking. IO exception. Helps in improving Exception Handling of the program. Reducing the unchecked exception conditions in a program.&lt;br /&gt;&lt;br /&gt;&amp;&amp;amp;  and  : shortcircuit operators : Evaluates only one operand.&lt;br /&gt;&amp; and  : boolean operators : Both operands. Also bitwise operators.&lt;br /&gt;&lt;br /&gt;Constructors : Invoking default constructor when  a constructor() is defined will result in compile time error.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26851200-5967721799393043987?l=java-j2ee-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~4/_YjxpcuscHM" height="1" width="1"/&gt;</content><link rel="related" href="http://java-j2ee-interview-questions.blogspot.com/core_java" title="Core Java Interviews" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/5967721799393043987?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/5967721799393043987?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~3/_YjxpcuscHM/listed-here-are-areas-from-which-one.html" title="Core Java Interviews" /><author><name>Noddy</name><uri>http://www.blogger.com/profile/12432932653472595275</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://java-j2ee-interview-questions.blogspot.com/2007/03/listed-here-are-areas-from-which-one.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEcBQn4-fyp7ImA9WBFaFE0.&quot;"><id>tag:blogger.com,1999:blog-26851200.post-115225307803488539</id><published>2006-07-06T23:17:00.000-07:00</published><updated>2007-05-17T04:40:53.057-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-05-17T04:40:53.057-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Interview Q's on UML and Design Patterns" /><title>Interview Questions on UML and Design Patterns</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bclP1K-uh5ZMy7kJ_joGN-RDfAQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bclP1K-uh5ZMy7kJ_joGN-RDfAQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/bclP1K-uh5ZMy7kJ_joGN-RDfAQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bclP1K-uh5ZMy7kJ_joGN-RDfAQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;strong&gt;Interview Questions on UML and Design Patterns&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Why to use design patterns?&lt;br /&gt;Give examples of design patterns?&lt;br /&gt;What is UML?&lt;br /&gt;What are advantages of using UML?&lt;br /&gt;What is the need for modelling?&lt;br /&gt;Is it requiste to use UML in software projects?&lt;br /&gt;What are use cases? How did you capture use cases in your project?&lt;br /&gt;Explain the different types of UML diagrams ? sequence diagram , colloboration diagram etc&lt;br /&gt;What is the sequence of UML diagrams in project?&lt;br /&gt;What tools did you use for UML in your project?&lt;br /&gt;What is the difference between activity and sequence diagrams?&lt;br /&gt;What are deployment diagrams?&lt;br /&gt;What are the different object relationships ?&lt;br /&gt;What is the difference between composition and aggregation?&lt;br /&gt;Wheel acting as a part of car ? Is this composition or aggregation?&lt;strong&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26851200-115225307803488539?l=java-j2ee-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~4/ZWON5ozChKY" height="1" width="1"/&gt;</content><link rel="related" href="http://java-j2ee-interview-questions.blogspot.com/uml" title="Interview Questions on UML and Design Patterns" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/115225307803488539?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/115225307803488539?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~3/ZWON5ozChKY/interview-questions-on-uml-and-design.html" title="Interview Questions on UML and Design Patterns" /><author><name>Noddy</name><uri>http://www.blogger.com/profile/12432932653472595275</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://java-j2ee-interview-questions.blogspot.com/2006/07/interview-questions-on-uml-and-design.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak8HQ3s8cSp7ImA9WBFaE00.&quot;"><id>tag:blogger.com,1999:blog-26851200.post-114587783681050931</id><published>2006-04-24T04:16:00.000-07:00</published><updated>2007-05-16T02:47:12.579-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-05-16T02:47:12.579-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Questions and Answers : 1 to 50" /><title>400+ Java Q's and A's : Core Java, Servlets, JSP ...and more</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/nXSgiZWAz7GmmM-PGB_7b2oTYDc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/nXSgiZWAz7GmmM-PGB_7b2oTYDc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/nXSgiZWAz7GmmM-PGB_7b2oTYDc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/nXSgiZWAz7GmmM-PGB_7b2oTYDc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-family:trebuchet ms;"&gt;1. What are the four corner stones of OOP ?&lt;br /&gt;Abstraction, Encapsulation, Polymorphism and Inheritance.&lt;br /&gt;&lt;br /&gt;2. What do you understand by private, protected and public ?&lt;br /&gt;These are accessibility modifiers. Private is the most restrictive, while public is the least restrictive. There is no real difference between protected and the default type (also known as package protected) within the context of the same package, however the protected keyword allows visibility to a derived class in a different package. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;3. Difference between a Class and an Object ?&lt;br /&gt;A class is a definition or prototype whereas an object is an instance or living representation of the prototype.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;4. What is Downcasting ?&lt;br /&gt;Downcasting is the casting from a general to a more specific type, i.e. casting down the hierarchy.&lt;br /&gt;5. What is Polymorphism ? What kinds ? &lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;6. What is the difference between method overriding and overloading?&lt;br /&gt;Overriding is a method with the same name and arguments as in a parent, whereas overloading is the same method name but different arguments.&lt;br /&gt;&lt;br /&gt;7. What is the restriction on an Overridden methods’ accessibility ?&lt;br /&gt;Overriding methods cannot reduce accessibility - they can either have same or greater accessibility.&lt;br /&gt;&lt;br /&gt;8. What is the concept of a Virtual Function ?&lt;br /&gt;&lt;br /&gt;9. What is the implication of a Virtual Destructor ? Virtual Constructor ?&lt;br /&gt;&lt;br /&gt;10. Can a method be overloaded based on different return type but same argument type ?&lt;br /&gt;No, because the methods can be called without using their return type in which case there is ambiquity for the compiler.&lt;br /&gt;&lt;br /&gt;11. What is a "stateless" protocol ?&lt;br /&gt;Without getting into lengthy debates, it is generally accepted that protocols like HTTP are stateless i.e. there is no retention of state between a transaction which is a&lt;br /&gt;single request response combination.&lt;br /&gt;&lt;br /&gt;12. What happens to a static var that is defined within a method of a class ?&lt;br /&gt;Can't do it. You'll get a compilation error.&lt;br /&gt;&lt;br /&gt;13. What is constructor chaining and how is it achieved in Java ?&lt;br /&gt;A child object constructor always first needs to construct its parent (which in turn calls its parent constructor.). In Java it is done via an implicit call to the no-args&lt;br /&gt;constructor as the first statement. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;a href="http://behavioural-interviews.blogspot.com/"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Link to Behavioural Interview Questions&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;14. How do you define a local inner class ?&lt;br /&gt;&lt;br /&gt;15. How many static init can you have ?&lt;br /&gt;As many as you want, but the static initializers and class variable initializers are executed in textual order and may not refer to class variables declared in the class whose&lt;br /&gt;declarations appear textually after the use, even though these class variables are in scope.&lt;br /&gt;&lt;br /&gt;16. What is passed by ref and what by value ?&lt;br /&gt;All Java method arguments are passed by value. However, Java does manipulate objects by reference, and all object variables themselves are references.&lt;br /&gt;&lt;br /&gt;17. How do you ensure size of a primitive data type ?&lt;br /&gt;You can't.&lt;br /&gt;&lt;br /&gt;18. Describe the Garbage Collection process in Java ?&lt;br /&gt;The JVM spec mandates automatic garbage collection outside of the programmers control. The System.gc() or Runtime.gc() is merely a suggestion to the JVM to run the&lt;br /&gt;&lt;br /&gt;GC process but is NOT guaranteed.&lt;br /&gt;&lt;br /&gt;19. What is the difference amongst JVM Spec, JVM Implementation, JVM Runtime ?&lt;br /&gt;The JVM spec is the blueprint for the JVM generated and owned by Sun. The JVM implementation is the actual implementation of the spec by a vendor and the JVM&lt;br /&gt;&lt;br /&gt;runtime is the actual running instance of a JVM implementation.&lt;br /&gt;&lt;br /&gt;20. Can RMI and Corba based applications interact ?&lt;br /&gt;Yes they can. RMI is available with IIOP as the transport protocol instead of JRMP&lt;br /&gt;&lt;br /&gt;21 .What is the diffrence between an Abstract class and Interface ?&lt;br /&gt;Ans ) Interface defines the methods. There is no implementation.&lt;br /&gt;Whereas Abstract class may have few implemented methods.If some common functionality needs to be shared.&lt;br /&gt;&lt;br /&gt;22. What is user defined exception ?&lt;br /&gt;Ans )&lt;br /&gt;&lt;br /&gt;23. What do you know about the garbate collector ?&lt;br /&gt;Ans ) Java has an inbuilt mechanisim for garbage collection.&lt;br /&gt;All those objects not longer being referenced are garbage collected.i.e the memory used by these objects is released.&lt;br /&gt;&lt;br /&gt;24.What is the difference between C++ &amp; Java ?&lt;br /&gt;25.Explain RMI Architecture?&lt;br /&gt;26.How do you communicate in between Applets &amp;amp; Servlets ?&lt;br /&gt;&lt;br /&gt;27.What is the use of Servlets ?&lt;br /&gt;Ans ) To generate dynamic content based on the request.&lt;br /&gt;&lt;br /&gt;28.What is JDBC? How do you connect to the Database ?&lt;br /&gt;Ans ) Java Database connectivity.&lt;br /&gt;Using jdbc drivers provided by db drivers.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;29.In an HTML form I have a Button which makes us to open another page in 15 seconds. How will do you that ?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;30.What is the difference between Process and Threads ?&lt;br /&gt;Ans ) There could be no of processes(multi tasking) and every process could have no of threads(multi threading).&lt;br /&gt;&lt;br /&gt;31. What is the difference between RMI &amp;amp; Corba ?&lt;br /&gt;Ans ) Remote method invocation : java only. uses JRMP to communication between java objects&lt;br /&gt;Common object request broker architecture : platform independent. Uses IIOP to communicate between objects.&lt;br /&gt;&lt;br /&gt;32.What are the services in RMI ?&lt;br /&gt;33.How will you initialize an Applet ?&lt;br /&gt;34.What is the order of method invocation in an Applet?&lt;br /&gt;35.When is update method called ?&lt;br /&gt;&lt;br /&gt;36.How will you pass values from HTML page to the Servlet ?&lt;br /&gt;Ans ) submitting the html form.&lt;br /&gt;&lt;br /&gt;37.Have you ever used HashTable and Dictionary ?&lt;br /&gt;Ans ) Dictionary is an abstract class. Hastable extends Dictionary.&lt;br /&gt;&lt;br /&gt;38.How will you communicate between two Applets ?&lt;br /&gt;39.What are statements in JAVA ?&lt;br /&gt;&lt;br /&gt;40.What is JAR file ?&lt;br /&gt;Ans ) Jar file is an archive of java classes.&lt;br /&gt;&lt;br /&gt;41.What is JNI ?&lt;br /&gt;Ans ) Java Native interfaces.&lt;br /&gt;&lt;br /&gt;42.What is the base class for all swing components ?&lt;br /&gt;43.What is JFC ?&lt;br /&gt;Ans ) Java Foundation classes.&lt;br /&gt;&lt;br /&gt;44.What is Difference between AWT and Swing ?&lt;br /&gt;&lt;br /&gt;45.Considering notepad/IE or any other thing as process, What will happen if you start notepad or IE 3 times? Where 3 processes are started or 3 threads are started ?&lt;br /&gt;Ans ) processes.&lt;br /&gt;&lt;br /&gt;46.How does thread synchronization occurs inside a monitor ?&lt;br /&gt;Ans ) A thread acquires the monitor.i.e it obtains a lock on the monitor.No other thread can acquire a lock on the same monitor until it is released by the previous thread.&lt;br /&gt;&lt;br /&gt;47.What are 4 drivers available in JDBC ?&lt;br /&gt;Ans ) jdbc-odbc bridge&lt;br /&gt;Type 4 : pure java driver. no need to have db client installed on client mcs.&lt;br /&gt;&lt;br /&gt;48.How you can know about drivers and database information ?&lt;br /&gt;49.How will you perform transaction using JDBC ?&lt;br /&gt;50.In RMI, server object first loaded into the memory and then the stub reference&lt;br /&gt;is sent to the client ? or whether a stub reference is directly sent to the client ?&lt;br /&gt;Suppose server object is not loaded into the memory, and the client request for it , what will happen?&lt;br /&gt;&lt;br /&gt;51.What is serialization ?&lt;br /&gt;Ans ) Process of persisting an object.&lt;br /&gt;&lt;br /&gt;52.What is difference RMI registry and OSAgent ?&lt;br /&gt;&lt;br /&gt;53.To a server method, the client wants to send a value 20,&lt;br /&gt;with this value exceeds to 20, a message should be sent to the client ? What will you do for achieving for this ?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;54 What are the benefits of Swing over AWT ?&lt;br /&gt;55 Where the CardLayout is used ?&lt;br /&gt;56 What is the Layout for ToolBar ?&lt;br /&gt;57 What is the difference between Grid and GridbagLayout ?&lt;br /&gt;58 How will you add panel to a Frame ?&lt;br /&gt;59 What is the corresponding Layout for Card in Swing ?&lt;br /&gt;60 What is light weight component ?&lt;br /&gt;63 What is Servlet API used for conneting database ?&lt;br /&gt;64 What is bean ? Where it can be used ?&lt;br /&gt;65 What is difference in between Java Class and Bean ?&lt;br /&gt;66 Can we send object using Sockets ?&lt;br /&gt;67 What is the RMI and Socket ?&lt;br /&gt;68 How to communicate 2 threads each other ?&lt;br /&gt;72 What is the functionality stubs and skeletons ?&lt;br /&gt;74 Diff between Application and Applet ?&lt;br /&gt;75 What is serializable Interface ?&lt;br /&gt;76 What is the difference between CGI and Servlet ?&lt;br /&gt;77 What is the use of Interface ?&lt;br /&gt;78 Why Java is not fully objective oriented ?&lt;br /&gt;79 Why does not support multiple Inheritance ?&lt;br /&gt;80 What it the root class for all Java classes ?&lt;br /&gt;81 What is polymorphism ?&lt;br /&gt;82 Suppose If we have variable 'I' in run method, If I can create one or more thread each thread will occupy a separate copy or same variable will be shared ?&lt;br /&gt;83 In servlets, we are having a web page that is invoking servlets username and password ? which is cheks in the database ? Suppose the second page also If we want to&lt;br /&gt;verify the same information whethe it will connect to the database or it will be used previous information?&lt;br /&gt;&lt;br /&gt;90 What are session variable in Servlets ?&lt;br /&gt;91 What is client server computing ?&lt;br /&gt;93 Why we use OOPS concepts? What is its advantage ?&lt;br /&gt;94 What is the middleware ? What is the functionality of Webserver ?&lt;br /&gt;95 Why Java is not 100 % pure OOPS ?&lt;br /&gt;96 When we will use an Interface and Abstract class ?&lt;br /&gt;97 What is an RMI?&lt;br /&gt;98 How will you pass parameters in RMI ? Why u serialize?&lt;br /&gt;100 What is the main functionality of the Remote Reference Layer ?&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26851200-114587783681050931?l=java-j2ee-interview-questions.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~4/_u3qkb8d2iY" height="1" width="1"/&gt;</content><link rel="related" href="http://java-j2ee-interview-questions.blogspot.com/" title="400+ Java Q's and A's : Core Java, Servlets, JSP ...and more" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/114587783681050931?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26851200/posts/default/114587783681050931?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/JavaJ2eeInterviewQuestionsAndAnswers/~3/_u3qkb8d2iY/java-interview-questions-and-answers.html" title="400+ Java Q's and A's : Core Java, Servlets, JSP ...and more" /><author><name>Noddy</name><uri>http://www.blogger.com/profile/12432932653472595275</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><feedburner:origLink>http://java-j2ee-interview-questions.blogspot.com/2006/04/java-interview-questions-and-answers.html</feedburner:origLink></entry></feed>

