<?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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;DEUGSHY6eSp7ImA9WxJXFUg.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221</id><updated>2009-06-09T07:03:49.811-07:00</updated><title>Interview Hot Java Tips</title><subtitle type="html">Java Questions on core java,J2ee,J2seJMS,JSP,Servlets
and on every topic in the Java.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://hotjavasips.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default?start-index=26&amp;max-results=25" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>56</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><feedburner:info uri="interviewhotjavatips" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/InterviewHotJavaTips" /><feedburner:info uri="interviewhotjavatips" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;D0MERnk8fCp7ImA9WxJXFUg.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-4768704014306980758</id><published>2009-06-09T06:41:00.000-07:00</published><updated>2009-06-09T06:50:07.774-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T06:50:07.774-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="applets" /><category scheme="http://www.blogger.com/atom/ns#" term="Applet lifecycle methods" /><title>Applets</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/u5i9rSARWQsl4F1etMIpuf_-BUQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/u5i9rSARWQsl4F1etMIpuf_-BUQ/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/u5i9rSARWQsl4F1etMIpuf_-BUQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/u5i9rSARWQsl4F1etMIpuf_-BUQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/mEOO2YyVLc6ujsMtBXkAFU6HS6Q/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mEOO2YyVLc6ujsMtBXkAFU6HS6Q/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/mEOO2YyVLc6ujsMtBXkAFU6HS6Q/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mEOO2YyVLc6ujsMtBXkAFU6HS6Q/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt;# What is an Applet? Should applets have constructors?&lt;/span&gt;&lt;br /&gt;- Applets are small programs transferred through Internet, automatically installed and run as part of web-browser. Applets implements functionality of a client. Applet is a dynamic and interactive program that runs inside a Web page displayed by a Java-capable browser. We don’t have the concept of Constructors in Applets. Applets can be invoked either through browser or through Appletviewer utility provided by JDK.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;# What are the Applet’s Life Cycle methods? Explain them?&lt;/span&gt;&lt;br /&gt; - Following are methods in the life cycle of an Applet:&lt;br /&gt;&lt;br /&gt;    &lt;blockquote&gt;* init() method - called when an applet is first loaded. This method is called only once in the entire cycle of an applet. This method usually intialize the variables to be used in the applet.&lt;br /&gt;    * start( ) method - called each time an applet is started.&lt;br /&gt;    * paint() method - called when the applet is minimized or refreshed. This method is used for drawing different strings, figures, and images on the applet window.&lt;br /&gt;    * stop( ) method - called when the browser moves off the applet’s page.&lt;br /&gt;    * destroy( ) method - called when the browser is finished with the applet.&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;# What is the sequence for calling the methods by AWT for applets?&lt;/span&gt;&lt;br /&gt; - When an applet begins, the AWT calls the following methods, in this sequence:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;    * init()&lt;br /&gt;    * start()&lt;br /&gt;    * paint()&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;When an applet is terminated, the following sequence of method calls takes place :&lt;br /&gt;&lt;br /&gt;    &lt;blockquote&gt;* stop()&lt;br /&gt;    * destroy()&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;# How do Applets differ from Applications? &lt;/span&gt;&lt;br /&gt;- Following are the main differences:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt; Application:&lt;/span&gt; Stand Alone, doesn’t need web-browser. &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Applet:&lt;/span&gt; Needs no explicit installation on local machine. Can be transferred through Internet on to the local machine and may run as part of web-browser.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Application:&lt;/span&gt; Execution starts with main() method. Doesn’t work if main is not there.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Applet: &lt;/span&gt;Execution starts with init() method. Application: May or may not be a GUI. &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Applet:&lt;/span&gt; Must run within a GUI (Using AWT). This is essential feature of applets.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;# Can we pass parameters to an applet from HTML page to an applet? How? &lt;/span&gt;&lt;br /&gt;- We can pass parameters to an applet using &lt;br /&gt;&lt;blockquote&gt;URL targetURL;String URLStringAppletContext context = getAppletContext();try{ targetURL = new URL(URLString);}catch (MalformedURLException e){ // Code for recover from the exception}context. showDocument (targetURL);&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;# Can applets on different pages communicate with each other?&lt;/span&gt;&lt;br /&gt;- No, Not Directly. The applets will exchange the information at one meeting place either on the local file system or at remote system.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;# How do I determine the width and height of my application?&lt;/span&gt;&lt;br /&gt;- Use the getSize() method, which the Applet class inherits from the Component class in the Java.awt package. The getSize() method returns the size of the applet as a Dimension object, from which you extract separate width, height fields. The following code snippet explains this:&lt;br /&gt;&lt;blockquote&gt;Dimension dim = getSize();int appletwidth = dim.width();int appletheight = dim.height();&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;# Which classes and interfaces does Applet class consist? &lt;/span&gt;&lt;br /&gt;- Applet class consists of a single class, the Applet class and three interfaces: AppletContext, AppletStub, and AudioClip.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;# What is AppletStub Interface?&lt;/span&gt;&lt;br /&gt;- The applet stub interface provides the means by which an applet and the browser communicate. Your code will not typically implement this interface.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;# What tags are mandatory when creating HTML to display an applet?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   1. name, height, width&lt;br /&gt;   2. code, name&lt;br /&gt;   3. codebase, height, width&lt;br /&gt;   4. code, height, width&lt;br /&gt;&lt;br /&gt;Correct answer is d.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;# What are the Applet’s information methods?&lt;/span&gt;&lt;br /&gt;- The following are the Applet’s information methods: getAppletInfo() method: Returns a string describing the applet, its author, copyright information, etc. getParameterInfo( ) method: Returns an array of string describing the applet’s parameters.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;# What are the steps involved in Applet development? &lt;/span&gt;&lt;br /&gt;- Following are the steps involved in Applet development:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;    * Create/Edit a Java source file. This file must contain a class which extends Applet class.&lt;br /&gt;    * Compile your program using javac&lt;br /&gt;    * Execute the appletviewer, specifying the name of your applet’s source file or html file. In case the applet information is stored in html file then Applet can be invoked using java enabled web browser.&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;# Which method is used to output a string to an applet? Which function is this method included in?&lt;/span&gt;&lt;br /&gt; - drawString( ) method is used to output a string to an applet. This method is included in the paint method of the Applet.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-4768704014306980758?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/VtMbY1hVSDo" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/7yveofT2A5g" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/4768704014306980758/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/applets.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/4768704014306980758?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/4768704014306980758" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/7yveofT2A5g/applets.html" title="Applets" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/applets.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/VtMbY1hVSDo/applets.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkENRHc-eyp7ImA9WxJXFUg.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-4214976781293231687</id><published>2009-06-09T06:28:00.000-07:00</published><updated>2009-06-09T06:38:15.953-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T06:38:15.953-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="servlet lifecycle" /><category scheme="http://www.blogger.com/atom/ns#" term="servlets" /><title>Servlets</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/SvVwOin5oLqfMwkR63ANF6g0nAQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SvVwOin5oLqfMwkR63ANF6g0nAQ/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/SvVwOin5oLqfMwkR63ANF6g0nAQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SvVwOin5oLqfMwkR63ANF6g0nAQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/tjiMPPuMICA08kVGIK_FxrSZ4vs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tjiMPPuMICA08kVGIK_FxrSZ4vs/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/tjiMPPuMICA08kVGIK_FxrSZ4vs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tjiMPPuMICA08kVGIK_FxrSZ4vs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt; 1. What is a servlet?&lt;/span&gt;&lt;br /&gt;      Servlets are modules that extend request/response-oriented servers,such as Java-enabled web servers. For example, a servlet might be responsible for taking data in an HTML order-entry form and applying the business logic used to update a company’s order database. Servlets are to servers what applets are to browsers. Unlike applets, however, servlets have no graphical user interface.&lt;br /&gt;&lt;br /&gt; &lt;span style="font-weight:bold;"&gt;  2. Whats the advantages using servlets over using CGI?&lt;/span&gt;&lt;br /&gt;      Servlets provide a way to generate dynamic documents that is both easier to write and faster to run. Servlets also address the problem of doing server-side programming with platform-specific APIs: they are developed with the Java Servlet API, a standard Java extension.&lt;br /&gt;  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt; 3. What are the general advantages and selling points of Servlets?&lt;/span&gt;&lt;br /&gt;      A servlet can handle multiple requests concurrently, and synchronize requests. This allows servlets to support systems such as online  real-time conferencing. Servlets can forward requests to other servers and servlets. Thus servlets can be used to balance load among several servers that mirror the same content, and to partition a single logical service over several servers, according to task type or organizational boundaries.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;   4. Which package provides interfaces and classes for writing servlets?&lt;/span&gt;&lt;br /&gt; javax&lt;br /&gt;   &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5. What’s the Servlet Interface?&lt;/span&gt;&lt;br /&gt;      The central abstraction in the Servlet API is the Servlet interface. All servlets implement this interface, either directly or, more&lt;br /&gt;      commonly, by extending a class that implements it such as HttpServlet.Servlets &gt; Generic Servlet &gt; HttpServlet &gt; MyServlet.&lt;br /&gt;      The Servlet interface declares, but does not implement, methods that manage the servlet and its communications with clients. Servlet writers provide some or all of these methods when developing a servlet.&lt;br /&gt;   &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;6. When a servlet accepts a call from a client, it receives two objects. What are they?&lt;br /&gt;&lt;/span&gt;      ServletRequest (which encapsulates the communication from the client to the server) and ServletResponse (which encapsulates the communication from the servlet back to the client). ServletRequest and ServletResponse are interfaces defined inside javax.servlet package.&lt;br /&gt;   &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;7. What information does ServletRequest allow access to?&lt;/span&gt;&lt;br /&gt;      Information such as the names of the parameters passed in by the client, the protocol (scheme) being used by the client, and the names&lt;br /&gt;      of the remote host that made the request and the server that received it. Also the input stream, as ServletInputStream.Servlets use the input stream to get data from clients that use application protocols such as the HTTP POST and GET methods.&lt;br /&gt;   &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;8. What type of constraints can ServletResponse interface set on the client?&lt;/span&gt;&lt;br /&gt;      It can set the content length and MIME type of the reply. It also provides an output stream, ServletOutputStream and a Writer through which the servlet can send the reply data.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;   9. Explain servlet lifecycle?&lt;/span&gt;&lt;br /&gt;      Each servlet has the same life cycle: first, the server loads and initializes the servlet (init()), then the servlet handles zero or more client requests (service()), after that the server removes the servlet (destroy()). Worth noting that the last step on some servers is done when they shut down.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  10. How does HTTP Servlet handle client requests?&lt;/span&gt;&lt;br /&gt;      An HTTP Servlet handles client requests through its service method. The service method supports standard HTTP client requests by dispatching each request to a method designed to handle that request.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-4214976781293231687?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/q7RdTM3f4N8" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/R5UUXSyKG-E" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/4214976781293231687/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/servlets_09.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/4214976781293231687?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/4214976781293231687" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/R5UUXSyKG-E/servlets_09.html" title="Servlets" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/servlets_09.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/q7RdTM3f4N8/servlets_09.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkcHSX85eSp7ImA9WxJXFUg.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-432964122447304943</id><published>2009-06-09T06:03:00.000-07:00</published><updated>2009-06-09T06:27:18.121-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T06:27:18.121-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="session bean" /><category scheme="http://www.blogger.com/atom/ns#" term="scaling" /><category scheme="http://www.blogger.com/atom/ns#" term="EJB" /><category scheme="http://www.blogger.com/atom/ns#" term="server group" /><category scheme="http://www.blogger.com/atom/ns#" term="JMS" /><category scheme="http://www.blogger.com/atom/ns#" term="Clustering" /><category scheme="http://www.blogger.com/atom/ns#" term="Entity Bean" /><category scheme="http://www.blogger.com/atom/ns#" term="clone" /><category scheme="http://www.blogger.com/atom/ns#" term="ripple effect" /><title>EJB Intricacy</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/xGsDJ0hzKgLUxALVRbp2igrX9nk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xGsDJ0hzKgLUxALVRbp2igrX9nk/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/xGsDJ0hzKgLUxALVRbp2igrX9nk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xGsDJ0hzKgLUxALVRbp2igrX9nk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/vOpcGUwaO_T3mWwcRmPKWG-Ale8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vOpcGUwaO_T3mWwcRmPKWG-Ale8/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/vOpcGUwaO_T3mWwcRmPKWG-Ale8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vOpcGUwaO_T3mWwcRmPKWG-Ale8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt;   1. What is the relationship between local interfaces and container-managed relationships?&lt;/span&gt; &lt;br /&gt;- Entity beans that have container-managed relationships with other entity beans, must be accessed in the same local scope as those related beans, and therefore typically provide a local client view. In order to be the target of a container-managed relationship, an entity bean with container-managed persistence must provide a local interface.&lt;br /&gt;&lt;br /&gt;  &lt;span style="font-weight:bold;"&gt; 2. What does a remove method do for different cases of beans? &lt;/span&gt;&lt;br /&gt;- &lt;span style="font-weight:bold;"&gt;Stateless Session :&lt;/span&gt; Does not do anything to the bean as moving the bean from free pool to cache are managed by the container depending on load. &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Stateful Session: &lt;/span&gt;Removes the bean from the cache. &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Entity Bean:&lt;/span&gt; Deletes the bean (data) from persistent storage&lt;br /&gt;&lt;br /&gt;  &lt;span style="font-weight:bold;"&gt; 3. How does a container-managed relationship work? &lt;/span&gt;&lt;br /&gt;- An entity bean accesses related entity beans by means of the accessor methods for its container-managed relationship fields, which are specified by the cmr-field elements of its abstract persistence schema defined in the deployment descriptor. Entity bean relationships are defined in terms of the local interfaces of the related beans, and the view an entity bean presents to its related beans is defined by its local home and local interfaces. Thus, an entity bean can be the target of a relationship from another entity bean only if it has a local interface.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;   4. What is the new basic requirement for a CMP entity bean class in 2.0 from that of ejb 1.1?&lt;br /&gt;&lt;/span&gt; - It must be abstract class. The container extends it and implements methods which are required for managing the relationships&lt;br /&gt;&lt;br /&gt;  &lt;span style="font-weight:bold;"&gt; 5. What are the basic classes required in the client for invoking an EJB? &lt;/span&gt;&lt;br /&gt;- The home and the remote interfaces, the implementation of the Naming Context Factory, the stubs and skeletons. In some App servers the stubs and the skeletons can be dynamically downloaded from the server&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;   6. What is the difference between Message Driven Beans and Stateless Session beans? &lt;/span&gt;&lt;br /&gt;- In several ways, the dynamic creation and allocation of message-driven bean instances mimics the behavior of stateless session EJB instances, which exist only for the duration of a particular method call. However, message-driven beans are different from stateless session EJBs (and other types of EJBs) in several significant ways:&lt;br /&gt;      &lt;blockquote&gt;   1. Message-driven beans process multiple JMS messages asynchronously, rather than processing a serialized sequence of method calls.&lt;br /&gt;         2. Message-driven beans have no home or remote interface, and therefore cannot be directly accessed by internal or external clients. Clients interact with message-driven beans only indirectly, by sending a message to a JMS Queue or Topic.&lt;br /&gt;         3. Only the container directly interacts with a message-driven bean by creating bean instances and passing JMS messages to those instances as necessary.&lt;br /&gt;         4. The Container maintains the entire lifecycle of a message-driven bean; instances cannot be created or removed as a result of client requests or other API calls.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;   7. What is the need for Clustering?&lt;/span&gt;&lt;br /&gt; - To scale the application so that it is highly available and has high throughput.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;   8. What are the benefits of Clustering and workload management?&lt;/span&gt;&lt;br /&gt; - They are&lt;blockquote&gt;&lt;br /&gt;         1. It balances client processing requests, allowing incoming work requests to be distributed according to a configured Workload Management selection policy.&lt;br /&gt;         2. It provides fail over capability by redirecting client requests to a running server when one or more servers are unavailable. This improves the availability of applications and administrative services.&lt;br /&gt;         3. It enables systems to be scaled up to serve a higher client load than provided by the basic configuration. With server groups and clones additional instances of servers can easily be added to the configuration.&lt;br /&gt;         4. It enables servers to be transparently maintained and upgraded while applications remain available for users.&lt;br /&gt;         5. It centralizes administration of application servers and other objects.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;   9. What are the types of Scaling? &lt;/span&gt;&lt;br /&gt;- There are two types of scaling: Vertical Scaling and Horizontal Scaling.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  10. What is Vertical Scaling?&lt;/span&gt;&lt;br /&gt; - When multiple server clones of an application server are defined on the same physical m/c, it is called Vertical Scaling. The objective is to use the processing power of that m/c more efficiently.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  11. What is Horizontal Scaling?&lt;/span&gt;&lt;br /&gt; - When Clones of an application server are defined on multiple physical m/c, it is called Horizontal Scaling. The objective is to use more than one less powerful m/c more efficiently.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  12. What is a Server Group? &lt;/span&gt;&lt;br /&gt;- A server group is a template of an Application Server(and its contents) i.e, it is a logical representation of the application server. It has the same structure and attributes as the real Application Server, but it is not associated with any node, and does not correspond to any real server process running on any node.&lt;br /&gt; &lt;br /&gt;&lt;span style="font-weight:bold;"&gt; 13. What is a Clone? &lt;/span&gt;&lt;br /&gt;- The copies of a server group are called Clones. But unlike a Server Group Clones are associated with a node and are real server process running in that node.&lt;br /&gt; &lt;br /&gt;&lt;span style="font-weight:bold;"&gt; 14. What is Ripple Effect? &lt;/span&gt;&lt;br /&gt;- The process of propagating the changes in the properties of a server group during runtime to all the associated clones is called Ripple Effect.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  15. What level of Load Balancing is possible with EJBs?&lt;/span&gt;&lt;br /&gt; - The workload management service provides load balancing for the following types of enterprise beans: Homes of entity or session beans, Instances of entity beans, Instances of stateless session beans.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  16. What is the basic requirement for in-memory replication in Weblogic?&lt;/span&gt;&lt;br /&gt; - The data in session should consist only of Serialized objects. Only setAttribute function should be used to set objects in session.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;17. How JDBC services can be used in clustered environment? &lt;/span&gt;&lt;br /&gt;- Identical DataSource has to be created in each clustered server instances and configure to use different connection pools.&lt;br /&gt;&lt;br /&gt; &lt;span style="font-weight:bold;"&gt; 18. What are the services that should not be used in a Clustered Environment?&lt;/span&gt;&lt;br /&gt; - Non-clustered services:&lt;br /&gt;        &lt;blockquote&gt; 1. File Services&lt;br /&gt;         2. Time services&lt;br /&gt;         3. Weblogic events&lt;br /&gt;         4. Weblogic Workspaces (In WebLogic 5.1)&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  19. Mention some tools to cluster Web Servers?&lt;/span&gt;&lt;br /&gt; - Web Servers can be clustered using Edge Server or DNS.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  20. What is in-memory replication?&lt;/span&gt;&lt;br /&gt; - The process by which the contents in the memory of one physical m/c are replicated in all the m/c in the cluster is called in-memory replication.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  21. Difference Between Abstraction and Encapsulation?&lt;/span&gt;&lt;br /&gt; - Abstraction is removing some distinctions between objects, so as to show their commonalities. Encapsulation is hiding the details of the implementation of an object so that there are no external dependencies on the particular implementation.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-432964122447304943?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/wWTOpfw54zI" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/tK02IqWfmDs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/432964122447304943/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/1.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/432964122447304943?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/432964122447304943" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/tK02IqWfmDs/1.html" title="EJB Intricacy" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/1.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/wWTOpfw54zI/1.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C04MRHo9cCp7ImA9WxJXFUg.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-3451169863707680365</id><published>2009-06-09T05:35:00.000-07:00</published><updated>2009-06-09T05:53:05.468-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T05:53:05.468-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JSP" /><title>JSP Detailed</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/OBJO0UDf_Nn62xbbomyDP2sV534/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OBJO0UDf_Nn62xbbomyDP2sV534/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/OBJO0UDf_Nn62xbbomyDP2sV534/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OBJO0UDf_Nn62xbbomyDP2sV534/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/tPYdtYeXoXMDF1pwu3efjmtfYd0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tPYdtYeXoXMDF1pwu3efjmtfYd0/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/tPYdtYeXoXMDF1pwu3efjmtfYd0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tPYdtYeXoXMDF1pwu3efjmtfYd0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt;   1. What are the implicit objects? &lt;/span&gt;&lt;br /&gt;- Implicit objects are objects that are created by the web container and contain information related to a particular request, page, or application. They are: request, response, pageContext, session, application, out, config, page, exception.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;   2. Is JSP technology extensible?&lt;/span&gt;&lt;br /&gt; - Yes. JSP technology is extensible through the development of custom actions, or tags, which are encapsulated in tag libraries.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;   3. How can I implement a thread-safe JSP page? What are the advantages and Disadvantages of using it?&lt;br /&gt;&lt;/span&gt; - You can make your JSPs thread-safe by having them implement the SingleThreadModel interface. This is done by adding the directive &lt; %@ page isThreadSafe="false" %&gt; within your JSP page. With this, instead of a single instance of the servlet generated for your JSP page loaded in memory, you will have N instances of the servlet loaded and initialized, with the service method of each instance effectively synchronized. You can typically control the number of instances (N) that are instantiated for all servlets implementing SingleThreadModel through the admin screen for your JSP engine. More importantly, avoid using the &lt; %! DECLARE %&gt;tag for variables. If you do use this tag, then you should set isThreadSafe to true, as mentioned above. Otherwise, all requests to that page will access those variables, causing a nasty race condition. SingleThreadModel is not recommended for normal use. There are many pitfalls, including the example above of not being able to use &lt; %! %&gt;. You should try really hard to make them thread-safe the old fashioned way: by making them thread-safe.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;   4. How does JSP handle run-time exceptions? &lt;br /&gt;&lt;/span&gt;- You can use the errorPage attribute of the page directive to have uncaught run-time exceptions automatically forwarded to an error processing page. For example: &lt; %@ page errorPage="error.jsp" %&gt;&lt;br /&gt;&lt;br /&gt;      redirects the browser to the JSP page error.jsp if an uncaught exception is encountered during request processing. Within error.jsp, if you indicate that it is an error-processing page, via the directive: &lt; %@ page isErrorPage="true" %&gt; Throwable object describing the exception may be accessed within the error page via the exception implicit object. Note: You must always use a relative URL as the value for the errorPage attribute.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;   5. How do I prevent the output of my JSP or Servlet pages from being cached by the browser? &lt;br /&gt;&lt;/span&gt;- You will need to set the appropriate HTTP header attributes to prevent the dynamic content output by the JSP page from being cached by the browser. Just execute the following scriptlet at the beginning of your JSP pages to prevent them from being cached at the browser. You need both the statements to take care of some of the older browser versions.&lt;br /&gt;&lt;br /&gt;      &lt; %&lt;br /&gt;&lt;br /&gt;      response.setHeader(”Cache-Control”,”no-store”); //HTTP 1.1&lt;br /&gt;&lt;br /&gt;      response.setHeader(”Pragma”,”no-cache”); //HTTP 1.0&lt;br /&gt;&lt;br /&gt;      response.setDateHeader (”Expires”, 0); //prevents caching at the proxy server&lt;br /&gt;&lt;br /&gt;      %&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;   6. How do I use comments within a JSP page?&lt;/span&gt;&lt;br /&gt; - You can use “JSP-style” comments to selectively block out code while debugging or simply to comment your scriptlets. JSP comments are not visible at the client. For example:&lt;br /&gt;&lt;br /&gt;       &lt; %-- the scriptlet is now commented out&lt;br /&gt;       &lt; %&lt;br /&gt;       out.println("Hello World");&lt;br /&gt;       %&gt;&lt;br /&gt;       --%&gt;&lt;br /&gt;&lt;br /&gt;      You can also use HTML-style comments anywhere within your JSP page. These comments are visible at the client. For example:&lt;br /&gt;&lt;br /&gt;      Of course, you can also use comments supported by your JSP scripting language within your scriptlets. For example, assuming Java is the scripting language, you can have:&lt;br /&gt;&lt;br /&gt;       &lt; %&lt;br /&gt;       //some comment&lt;br /&gt;       /**&lt;br /&gt;       yet another comment&lt;br /&gt;       **/&lt;br /&gt;       %&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;   7. Response has already been commited error. What does it mean? &lt;/span&gt;&lt;br /&gt;- This error show only when you try to redirect a page after you already have written something in your page. This happens because HTTP specification force the header to be set up before the lay out of the page can be shown (to make sure of how it should be displayed, content-type=”text/html” or “text/xml” or “plain-text” or “image/jpg”, etc.) When you try to send a redirect status (Number is line_status_402), your HTTP server cannot send it right now if it hasn’t finished to set up the header. If not starter to set up the header, there are no problems, but if it ’s already begin to set up the header, then your HTTP server expects these headers to be finished setting up and it cannot be the case if the stream of the page is not over… In this last case it’s like you have a file started with some output (like testing your variables.) Before you indicate that the file is over (and before the size of the page can be setted up in the header), you try to send a redirect status. It s simply impossible due to the specification of HTTP 1.0 and 1.1&lt;br /&gt;  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt; 8. How do I use a scriptlet to initialize a newly instantiated bean?&lt;br /&gt;&lt;/span&gt; - A jsp:useBean action may optionally have a body. If the body is specified, its contents will be automatically invoked when the specified bean is instantiated. Typically, the body will contain scriptlets or jsp:setProperty tags to initialize the newly instantiated bean, although you are not restricted to using those alone.&lt;br /&gt;&lt;br /&gt;      The following example shows the “today” property of the Foo bean initialized to the current date when it is instantiated. Note that here, we make use of a JSP expression within the jsp:setProperty action.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      &lt; %-- scriptlets calling bean setter methods go here --%&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;   9. How can I enable session tracking for JSP pages if the browser has disabled cookies? &lt;/span&gt;&lt;br /&gt;- We know that session tracking uses cookies by default to associate a session identifier with a unique user. If the browser does not support cookies, or if cookies are disabled, you can still enable session tracking using URL rewriting. URL rewriting essentially includes the session ID within the link itself as a name/value pair. However, for this to be effective, you need to append the session ID for each and every link that is part of your servlet response. Adding the session ID to a link is greatly simplified by means of of a couple of methods: response.encodeURL() associates a session ID with a given URL, and if you are using redirection, response.encodeRedirectURL() can be used by giving the redirected URL as input. Both encodeURL() and encodeRedirectedURL() first determine whether cookies are supported by the browser; if so, the input URL is returned unchanged since the session ID will be persisted as a cookie. Consider the following example, in which two JSP files, say hello1.jsp and hello2.jsp, interact with each other. Basically, we create a new session within hello1.jsp and place an object within this session. The user can then traverse to hello2.jsp by clicking on the link present within the page.Within hello2.jsp, we simply extract the object that was earlier placed in the session and display its contents. Notice that we invoke the encodeURL() within hello1.jsp on the link used to invoke hello2.jsp; if cookies are disabled, the session ID is automatically appended to the URL, allowing hello2.jsp to still retrieve the session object. Try this example first with cookies enabled. Then disable cookie support, restart the brower, and try again. Each time you should see the maintenance of the session across pages. Do note that to get this example to work with cookies disabled at the browser, your JSP engine has to support URL rewriting.&lt;br /&gt;&lt;br /&gt;       hello1.jsp&lt;br /&gt;       &lt; %@ page session="true" %&gt;&lt;br /&gt;       &lt; %&lt;br /&gt;       Integer num = new Integer(100);&lt;br /&gt;       session.putValue("num",num);&lt;br /&gt;       String url =response.encodeURL("hello2.jsp");&lt;br /&gt;       %&gt;&lt;br /&gt;       '&gt;hello2.jsp&lt;br /&gt;&lt;br /&gt;       hello2.jsp&lt;br /&gt;       &lt; %@ page session="true" %&gt;&lt;br /&gt;       &lt; %&lt;br /&gt;       Integer i= (Integer )session.getValue("num");&lt;br /&gt;       out.println("Num value in session is "+i.intValue());&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  10. How can I declare methods within my JSP page? &lt;/span&gt;&lt;br /&gt;- You can declare methods for use within your JSP page as declarations. The methods can then be invoked within any other methods you declare, or within JSP scriptlets and expressions. Do note that you do not have direct access to any of the JSP implicit objects like request, response, session and so forth from within JSP methods. However, you should be able to pass any of the implicit JSP variables as parameters to the methods you declare. For example:&lt;br /&gt;&lt;br /&gt;       &lt; %!&lt;br /&gt;       public String whereFrom(HttpServletRequest req) {&lt;br /&gt;       HttpSession ses = req.getSession();&lt;br /&gt;       ...&lt;br /&gt;       return req.getRemoteHost();&lt;br /&gt;       }&lt;br /&gt;       %&gt;&lt;br /&gt;       &lt; %&lt;br /&gt;       out.print("Hi there, I see that you are coming in from ");&lt;br /&gt;       %&gt;&lt;br /&gt;       &lt; %= whereFrom(request) %&gt;&lt;br /&gt;       Another Example&lt;br /&gt;       file1.jsp:&lt;br /&gt;       &lt; %@page contentType="text/html"%&gt;&lt;br /&gt;       &lt; %!&lt;br /&gt;       public void test(JspWriter writer) throws IOException{&lt;br /&gt;       writer.println("Hello!");&lt;br /&gt;       }&lt;br /&gt;       %&gt;&lt;br /&gt;&lt;br /&gt;       file2.jsp&lt;br /&gt;       &lt; %@include file="file1.jsp"%&gt;&lt;br /&gt;       &lt;br /&gt;       &lt;br /&gt;       &lt; %test(out);% &gt;&lt;br /&gt;       &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  11. Is there a way I can set the inactivity lease period on a per-session basis?&lt;/span&gt;&lt;br /&gt; - Typically, a default inactivity lease period for all sessions is set within your JSP engine admin screen or associated properties file. However, if your JSP engine supports the Servlet 2.1 API, you can manage the inactivity lease period on a per-session basis. This is done by invoking the HttpSession.setMaxInactiveInterval() method, right after the session has been created. For example:&lt;br /&gt;&lt;br /&gt;       &lt; %&lt;br /&gt;       session.setMaxInactiveInterval(300);&lt;br /&gt;       %&gt;&lt;br /&gt;&lt;br /&gt;      would reset the inactivity period for this session to 5 minutes. The inactivity interval is set in seconds.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  12. How can I set a cookie and delete a cookie from within a JSP page? &lt;/span&gt;&lt;br /&gt;- A cookie, mycookie, can be deleted using the following scriptlet:&lt;br /&gt;&lt;br /&gt;       &lt; %&lt;br /&gt;       //creating a cookie&lt;br /&gt;       Cookie mycookie = new Cookie("aName","aValue");&lt;br /&gt;       response.addCookie(mycookie);&lt;br /&gt;       //delete a cookie&lt;br /&gt;       Cookie killMyCookie = new Cookie("mycookie", null);&lt;br /&gt;       killMyCookie.setMaxAge(0);&lt;br /&gt;       killMyCookie.setPath("/");&lt;br /&gt;       response.addCookie(killMyCookie);&lt;br /&gt;       %&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  13. How does a servlet communicate with a JSP page?&lt;/span&gt;&lt;br /&gt; - The following code snippet shows how a servlet instantiates a bean and initializes it with FORM data posted by a browser. The bean is then placed into the request, and the call is then forwarded to the JSP page, Bean1.jsp, by means of a request dispatcher for downstream processing.&lt;br /&gt;&lt;br /&gt;       public void doPost (HttpServletRequest request, HttpServletResponse response) {&lt;br /&gt;       try {&lt;br /&gt;        govi.FormBean f = new govi.FormBean();&lt;br /&gt;        String id = request.getParameter("id");&lt;br /&gt;        f.setName(request.getParameter("name"));&lt;br /&gt;        f.setAddr(request.getParameter("addr"));&lt;br /&gt;        f.setAge(request.getParameter("age"));&lt;br /&gt;        //use the id to compute&lt;br /&gt;        //additional bean properties like info&lt;br /&gt;        //maybe perform a db query, etc.&lt;br /&gt;        // . . .&lt;br /&gt;        f.setPersonalizationInfo(info);&lt;br /&gt;        request.setAttribute("fBean",f);&lt;br /&gt;        getServletConfig().getServletContext().getRequestDispatcher&lt;br /&gt;                           ("/jsp/Bean1.jsp").forward(request, response);&lt;br /&gt;        } catch (Exception ex) {&lt;br /&gt;       . . .&lt;br /&gt;          }&lt;br /&gt;       }&lt;br /&gt;&lt;br /&gt;      The JSP page Bean1.jsp can then process fBean, after first extracting it from the default request scope via the useBean action.&lt;br /&gt;&lt;br /&gt;      jsp:useBean id="fBean" class="govi.FormBean" scope="request"&lt;br /&gt;      / jsp:getProperty name="fBean" property="name"&lt;br /&gt;      / jsp:getProperty name="fBean" property="addr"&lt;br /&gt;      / jsp:getProperty name="fBean" property="age"&lt;br /&gt;      / jsp:getProperty name="fBean" property="personalizationInfo" /&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  14. How do I have the JSP-generated servlet subclass my own custom servlet class, instead of the default?&lt;/span&gt;&lt;br /&gt; - One should be very careful when having JSP pages extend custom servlet classes as opposed to the default one generated by the JSP engine. In doing so, you may lose out on any advanced optimization that may be provided by the JSP engine. In any case, your new superclass has to fulfill the contract with the JSP engine by:&lt;br /&gt;&lt;br /&gt;      Implementing the HttpJspPage interface, if the protocol used is HTTP, or implementing JspPage otherwise Ensuring that all the methods in the Servlet interface are declared final Additionally, your servlet superclass also needs to do the following:&lt;br /&gt;          * The service() method has to invoke the _jspService() method&lt;br /&gt;          * The init() method has to invoke the jspInit() method&lt;br /&gt;          * The destroy() method has to invoke jspDestroy()&lt;br /&gt;&lt;br /&gt;      If any of the above conditions are not satisfied, the JSP engine may throw a translation error.&lt;br /&gt;&lt;br /&gt;      Once the superclass has been developed, you can have your JSP extend it as follows:&lt;br /&gt;&lt;br /&gt;       &lt; %@ page extends="packageName.ServletName" %&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;  15. How can I prevent the word “null” from appearing in my HTML input text fields when I populate them with a resultset that has null values? &lt;/span&gt;&lt;br /&gt;- You could make a simple wrapper function, like&lt;br /&gt;&lt;br /&gt;       &lt; %!&lt;br /&gt;       String blanknull(String s) {&lt;br /&gt;       return (s == null) ? "" : s;&lt;br /&gt;       }&lt;br /&gt;       %&gt;&lt;br /&gt;       then use it inside your JSP form, like&lt;br /&gt;       &lt;br /&gt;      " &gt;&lt;br /&gt;&lt;br /&gt; &lt;span style="font-weight:bold;"&gt; 16. How can I get to print the stacktrace for an exception occuring within my JSP page?&lt;/span&gt;&lt;br /&gt; - By printing out the exception’s stack trace, you can usually diagonse a problem better when debugging JSP pages. By looking at a stack trace, a programmer should be able to discern which method threw the exception and which method called that method. However, you cannot print the stacktrace using the JSP out implicit variable, which is of type JspWriter. You will have to use a PrintWriter object instead. The following snippet demonstrates how you can print a stacktrace from within a JSP error page:&lt;br /&gt;&lt;br /&gt;       &lt; %@ page isErrorPage="true" %&gt;&lt;br /&gt;       &lt; %&lt;br /&gt;       out.println(" ");&lt;br /&gt;        PrintWriter pw = response.getWriter();&lt;br /&gt;        exception.printStackTrace(pw);&lt;br /&gt;       out.println(" ");&lt;br /&gt;       %&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  17. How do you pass an InitParameter to a JSP? &lt;/span&gt;&lt;br /&gt;- The JspPage interface defines the jspInit() and jspDestroy() method which the page writer can use in their pages and are invoked in much the same manner as the init() and destory() methods of a servlet. The example page below enumerates through all the parameters and prints them to the console.&lt;br /&gt;&lt;br /&gt;       &lt; %@ page import="java.util.*" %&gt;&lt;br /&gt;       &lt; %!&lt;br /&gt;       ServletConfig cfg =null;&lt;br /&gt;       public void jspInit(){&lt;br /&gt;       ServletConfig cfg=getServletConfig();&lt;br /&gt;       for (Enumeration e=cfg.getInitParameterNames(); e.hasMoreElements();) {&lt;br /&gt;       String name=(String)e.nextElement();&lt;br /&gt;       String value = cfg.getInitParameter(name);&lt;br /&gt;       System.out.println(name+"="+value);&lt;br /&gt;       }&lt;br /&gt;       }&lt;br /&gt;       %&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  18. How can my JSP page communicate with an EJB Session Bean?&lt;/span&gt;&lt;br /&gt; - The following is a code snippet that demonstrates how a JSP page can interact with an EJB session bean:&lt;br /&gt;&lt;br /&gt;       &lt; %@ page import="javax.naming.*, javax.rmi.PortableRemoteObject, foo.AccountHome, foo.Account" %&gt;&lt;br /&gt;       &lt; %!&lt;br /&gt;       //declare a "global" reference to an instance of the home interface of the session bean&lt;br /&gt;       AccountHome accHome=null;&lt;br /&gt;       public void jspInit() {&lt;br /&gt;       //obtain an instance of the home interface&lt;br /&gt;       InitialContext cntxt = new InitialContext( );&lt;br /&gt;       Object ref= cntxt.lookup("java:comp/env/ejb/AccountEJB");&lt;br /&gt;       accHome = (AccountHome)PortableRemoteObject.narrow(ref,AccountHome.class);&lt;br /&gt;       }&lt;br /&gt;       %&gt;&lt;br /&gt;       &lt; %&lt;br /&gt;       //instantiate the session bean&lt;br /&gt;       Account acct = accHome.create();&lt;br /&gt;       //invoke the remote methods&lt;br /&gt;       acct.doWhatever(...);&lt;br /&gt;       // etc etc...&lt;br /&gt;       %&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-3451169863707680365?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/vBCfVxEsSOU" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/drwn8mjAKS0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/3451169863707680365/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/jsp-detailed.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/3451169863707680365?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/3451169863707680365" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/drwn8mjAKS0/jsp-detailed.html" title="JSP Detailed" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/jsp-detailed.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/vBCfVxEsSOU/jsp-detailed.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ck8AQH88eyp7ImA9WxJXFUg.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-8650492685508778463</id><published>2009-06-09T05:20:00.000-07:00</published><updated>2009-06-09T05:34:01.173-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T05:34:01.173-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="J2EE Nutshell" /><category scheme="http://www.blogger.com/atom/ns#" term="JNDI" /><category scheme="http://www.blogger.com/atom/ns#" term="jta" /><category scheme="http://www.blogger.com/atom/ns#" term="jts" /><category scheme="http://www.blogger.com/atom/ns#" term="jaxp" /><category scheme="http://www.blogger.com/atom/ns#" term="struts" /><title>J2EE Nutshell</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/LtlhkSOPxxUvhYZ1bjVqnYI_Jps/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LtlhkSOPxxUvhYZ1bjVqnYI_Jps/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/LtlhkSOPxxUvhYZ1bjVqnYI_Jps/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LtlhkSOPxxUvhYZ1bjVqnYI_Jps/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/uR5XZhV-jFfCf3VQNPNTNGV5k-0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uR5XZhV-jFfCf3VQNPNTNGV5k-0/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/uR5XZhV-jFfCf3VQNPNTNGV5k-0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uR5XZhV-jFfCf3VQNPNTNGV5k-0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt; 1. What makes J2EE suitable for distributed multitiered Applications?&lt;/span&gt;&lt;br /&gt;      - The J2EE platform uses a multitiered distributed application model. Application logic is divided into components according to function, and the various application components that make up a J2EE application are installed on different machines depending on the tier in the multitiered J2EE environment to which the application component belongs. The J2EE application parts are:&lt;br /&gt;         &lt;blockquote&gt; * Client-tier components run on the client machine.&lt;br /&gt;          * Web-tier components run on the J2EE server.&lt;br /&gt;          * Business-tier components run on the J2EE server.&lt;br /&gt;          * Enterprise information system (EIS)-tier software runs on the EIS server.&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;   2. What is J2EE? &lt;/span&gt;&lt;br /&gt;- J2EE is an environment for developing and deploying enterprise applications. The J2EE platform consists of a set of services, application programming interfaces (APIs), and protocols that provide the functionality for developing multitiered, web-based applications.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;   3. What are the components of J2EE application?&lt;/span&gt;&lt;br /&gt;      - A J2EE component is a self-contained functional software unit that is assembled into a J2EE application with its related classes and files and communicates with other components. The J2EE specification defines the following J2EE components:&lt;br /&gt;        &lt;blockquote&gt; 1. Application clients and applets are client components.&lt;br /&gt;         2. Java Servlet and JavaServer Pages technology components are web components.&lt;br /&gt;         3. Enterprise JavaBeans components (enterprise beans) are business components.&lt;br /&gt;         4. Resource adapter components provided by EIS and tool vendors.&lt;br /&gt;&lt;/blockquote&gt;  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt; 4. What do Enterprise JavaBeans components contain?&lt;/span&gt;&lt;br /&gt; - Enterprise JavaBeans components contains Business code, which is logic&lt;br /&gt;      that solves or meets the needs of a particular business domain such as banking, retail, or finance, is handled by enterprise beans running in the business tier. All the business code is contained inside an Enterprise Bean which receives data from client programs, processes it (if necessary), and sends it to the enterprise information system tier for storage. An enterprise bean also retrieves data from storage, processes it (if necessary), and sends it back to the client program.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;   5. Is J2EE application only a web-based? &lt;/span&gt;&lt;br /&gt;- No, It depends on type of application that client wants. A J2EE application can be web-based or non-web-based. if an application client executes on the client machine, it is a non-web-based J2EE application. The J2EE application can provide a way for users to handle tasks such as J2EE system or application administration. It typically has a graphical user interface created from Swing or AWT APIs, or a command-line interface. When user request, it can open an HTTP connection to establish communication with a servlet running in the web tier.&lt;br /&gt;  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt; 6. Are JavaBeans J2EE components? &lt;/span&gt;&lt;br /&gt;- No. JavaBeans components are not considered J2EE components by the J2EE specification. They are written to manage the data flow between an application client or applet and components running on the J2EE server or between server components and a database. JavaBeans components written for the J2EE platform have instance variables and get and set methods for accessing the data in the instance variables. JavaBeans components used in this way are typically simple in design and implementation, but should conform to the naming and design conventions outlined in the JavaBeans component architecture.&lt;br /&gt;   &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;7. Is HTML page a web component?&lt;/span&gt;&lt;br /&gt; - No. Static HTML pages and applets are bundled with web components during application assembly, but are not considered web components by the J2EE specification. Even the server-side utility classes are not considered web components, either.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;   8. What can be considered as a web component? &lt;/span&gt;&lt;br /&gt;- J2EE Web components can be either servlets or JSP pages. Servlets are Java programming language classes that dynamically process requests and construct responses. JSP pages are text-based documents that execute as servlets but allow a more natural approach to creating static content.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;   9. What is the container? &lt;/span&gt;&lt;br /&gt;- Containers are the interface between a component and the low-level platform specific functionality that supports the component. Before a Web, enterprise bean, or application client component can be executed, it must be assembled into a J2EE application and deployed into its container.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  10. What are container services? &lt;/span&gt;&lt;br /&gt;- A container is a runtime support of a system-level entity. Containers provide components with services such as lifecycle management, security, deployment, and threading.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  11. What is the web container? &lt;/span&gt;&lt;br /&gt;- Servlet and JSP containers are collectively referred to as Web containers. It manages the execution of JSP page and servlet components for J2EE applications. Web components and their container run on the J2EE server.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  12. What is Enterprise JavaBeans (EJB) container? &lt;/span&gt;&lt;br /&gt;- It manages the execution of enterprise beans for J2EE applications.&lt;br /&gt;      Enterprise beans and their container run on the J2EE server.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  13. What is Applet container? &lt;/span&gt;&lt;br /&gt;- IManages the execution of applets. Consists of a Web browser and Java Plugin running on the client together.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  14. How do we package J2EE components? &lt;/span&gt;&lt;br /&gt;- J2EE components are packaged separately and bundled into a J2EE application for deployment. Each component, its related files such as GIF and HTML files or server-side utility classes, and a deployment descriptor are assembled into a module and added to the J2EE application. A J2EE application is composed of one or more enterprise bean,Web, or application client component modules. The final enterprise solution can use one J2EE application or be made up of two or more J2EE applications, depending on design requirements. A J2EE application and each of its modules has its own deployment descriptor. A deployment descriptor is an XML document with an .xml extension that describes a component’s deployment settings.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  15. What is a thin client?&lt;/span&gt;&lt;br /&gt; - A thin client is a lightweight interface to the application that does not have such operations like query databases, execute complex business rules, or connect to legacy applications.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  16. What are types of J2EE clients?&lt;/span&gt;&lt;br /&gt; - Following are the types of J2EE clients:&lt;br /&gt;          &lt;blockquote&gt;* Applets&lt;br /&gt;          * Application clients&lt;br /&gt;          * Java Web Start-enabled rich clients, powered by Java Web Start technology.&lt;br /&gt;          * Wireless clients, based on Mobile Information Device Profile (MIDP) technology.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  17. What is deployment descriptor?&lt;/span&gt;&lt;br /&gt; - A deployment descriptor is an Extensible Markup Language (XML) text-based file with an .xml extension that describes a component’s deployment settings. A J2EE application and each of its modules has its own deployment descriptor. For example, an enterprise bean module deployment descriptor declares transaction attributes and security authorizations for an enterprise bean. Because deployment descriptor information is declarative, it can be changed without modifying the bean source code. At run time, the J2EE server reads the deployment descriptor and acts upon the component accordingly.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  18. What is the EAR file? &lt;/span&gt;&lt;br /&gt;- An EAR file is a standard JAR file with an .ear extension, named from Enterprise ARchive file. A J2EE application with all of its modules is delivered in EAR file.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  19. What is JTA and JTS?&lt;/span&gt;&lt;br /&gt; - JTA is the abbreviation for the Java Transaction API. JTS is the abbreviation for the Jave Transaction Service. JTA provides a standard interface and allows you to demarcate transactions in a manner that is independent of the transaction manager implementation. The J2EE SDK implements the transaction manager with JTS. But your code doesn’t call the JTS methods directly. Instead, it invokes the JTA methods, which then call the lower-level JTS routines. Therefore, JTA is a high level transaction interface that your application uses to control transaction. and JTS is a low level transaction interface and ejb uses behind the scenes (client code doesn’t directly interact with JTS. It is based on object transaction service(OTS) which is part of CORBA.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  20. What is JAXP?&lt;/span&gt;&lt;br /&gt; - JAXP stands for Java API for XML. XML is a language for representing and describing text-based data which can be read and handled by any program or tool that uses XML APIs. It provides standard services to determine the type of an arbitrary piece of data, encapsulate access to it, discover the operations available on it, and create the appropriate JavaBeans component to perform those operations.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  21. What is J2EE Connector?&lt;/span&gt;&lt;br /&gt; - The J2EE Connector API is used by J2EE tools vendors and system integrators to create resource adapters that support access to enterprise information systems that can be plugged into any J2EE product. Each type of database or EIS has a different resource adapter. Note: A resource adapter is a software component that allows J2EE application components to access and interact with the underlying resource manager. Because a resource adapter is specific to its resource manager, there is typically a different resource adapter for each type of database or enterprise information system.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  22. What is JAAP?&lt;/span&gt;&lt;br /&gt; - The Java Authentication and Authorization Service (JAAS) provides a way for a J2EE application to authenticate and authorize a specific user or group of users to run it. It is a standard Pluggable Authentication Module (PAM) framework that extends the Java 2 platform security architecture to support user-based authorization.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  23. What is Java Naming and Directory Service? &lt;/span&gt;&lt;br /&gt;- The JNDI provides naming and directory functionality. It provides applications with methods for performing standard directory operations, such as associating attributes with objects and searching for objects using their attributes. Using JNDI, a J2EE application can store and retrieve any type of named Java object. Because JNDI is independent of any specific implementations, applications can use JNDI to access multiple naming and directory services, including existing naming and&lt;br /&gt;directory services such as LDAP, NDS, DNS, and NIS.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  24. What is Struts? &lt;/span&gt;&lt;br /&gt;- A Web page development framework. Struts combines Java Servlets, Java Server Pages, custom tags, and message resources into a unified framework. It is a cooperative, synergistic platform, suitable for development teams, independent developers, and everyone between.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;  25. How is the MVC design pattern used in Struts framework? &lt;/span&gt;&lt;br /&gt;- In the MVC design pattern, application flow is mediated by a central Controller. The Controller delegates requests to an appropriate handler. The handlers are tied to a Model, and each handler acts as an adapter between the request and the Model. The Model represents, or encapsulates, an application’s business logic or state. Control is usually then forwarded back through the Controller to the appropriate View. The forwarding can be determined by consulting a set of mappings, usually loaded from a database or configuration file. This provides a loose coupling between the View and Model, which can make an application significantly easier to create and maintain. Controller: Servlet controller which supplied by Struts itself; View: what you can see on the screen, a JSP page and presentation components; Model: System state and a business logic JavaBeans.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-8650492685508778463?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/EL5HUaZK1uo" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/l6xXlsDni6w" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/8650492685508778463/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/j2ee-nutshell.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/8650492685508778463?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/8650492685508778463" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/l6xXlsDni6w/j2ee-nutshell.html" title="J2EE Nutshell" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/j2ee-nutshell.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/EL5HUaZK1uo/j2ee-nutshell.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0ADQ30_cCp7ImA9WxJXFUk.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-313407738574933857</id><published>2009-06-09T05:10:00.000-07:00</published><updated>2009-06-09T05:16:12.348-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T05:16:12.348-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JSP" /><category scheme="http://www.blogger.com/atom/ns#" term="J2EE" /><category scheme="http://www.blogger.com/atom/ns#" term="Components" /><title>JSP Components</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/H1dDf5kz_3F2mfixA22ZGyfiZ-M/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/H1dDf5kz_3F2mfixA22ZGyfiZ-M/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/H1dDf5kz_3F2mfixA22ZGyfiZ-M/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/H1dDf5kz_3F2mfixA22ZGyfiZ-M/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/mW6JoL5XogC3Mi3ABATclDne5NM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mW6JoL5XogC3Mi3ABATclDne5NM/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/mW6JoL5XogC3Mi3ABATclDne5NM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mW6JoL5XogC3Mi3ABATclDne5NM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt;What is JSP standard action ?&lt;/span&gt;&lt;br /&gt;An action that is defined in the JSP specification and is always available to a JSP page.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JSP tag file ?&lt;/span&gt;&lt;br /&gt;A source file containing a reusable fragment of JSP code that is translated into a tag handler when a JSP page is translated into a servlet.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JSP tag handler ?&lt;/span&gt;&lt;br /&gt;A Java programming language object that implements the behavior of a custom tag.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JSP tag library ?&lt;/span&gt;&lt;br /&gt;A collection of custom tags described via a tag library descriptor and Java classes.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JSTL ?&lt;/span&gt;&lt;br /&gt;Abbreviate of JavaServer Pages Standard Tag Library.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JTA ?&lt;/span&gt;&lt;br /&gt;Abbreviate of Java Transaction API.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JTS ?&lt;/span&gt;&lt;br /&gt;Abbreviate of Java Transaction Service.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is keystore ?&lt;/span&gt;&lt;br /&gt;A file containing the keys and certificates used for authentication&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is life cycle (J2EE component) ?&lt;/span&gt;&lt;br /&gt;The framework events of a J2EE component’s existence. Each type of component has defining events that mark its transition into states in which it has varying availability for use. For example, a servlet is created and has its init method called by its container before invocation of its service method by clients or other servlets that require its functionality. After the call of its init method, it has the data and readiness for its intended use. The servlet’s destroy method is called by its container before the ending of its existence so that processing associated with winding up can be done and resources can be released. The init and destroy methods in this example are callback methods. Similar considerations apply to the life cycle of all J2EE component types: enterprise beans, Web components (servlets or JSP pages), applets, and application clients.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is life cycle (JavaServer Faces) ?&lt;/span&gt;&lt;br /&gt;A set of phases during which a request for a page is received, a UI component tree representing the page is processed, and a response is produced. During the phases of the life cycle: The local data of the components is updated with the values contained in the request parameters. Events generated by the components are processed. Validators and converters registered on the components are processed. The components’ local data is updated to back-end objects. The response is rendered to the client while the component state of the response is saved on the server for future requests.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is local subset ?&lt;/span&gt;&lt;br /&gt;That part of the DTD that is defined within the current XML file.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is managed bean creation facility ?&lt;/span&gt;&lt;br /&gt;A mechanism for defining the characteristics of JavaBeans components used in a JavaServer Faces application.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is message ?&lt;/span&gt;&lt;br /&gt;In the Java Message Service, an asynchronous request, report, or event that is created, sent, and consumed by an enterprise application and not by a human. It contains vital information needed to coordinate enterprise applications, in the form of precisely formatted data that describes specific business actions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is message consumer ?&lt;/span&gt;&lt;br /&gt;An object created by a JMS session that is used for receiving messages sent to a destination.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is message-driven bean ?&lt;/span&gt;&lt;br /&gt;An enterprise bean that is an asynchronous message consumer. A message-driven bean has no state for a specific client, but its instance variables can contain state across the handling of client messages, including an open database connection and an object reference to an EJB object. A client accesses a message-driven bean by sending messages to the destination for which the bean is a message listener.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is message producer ?&lt;/span&gt;&lt;br /&gt;An object created by a JMS session that is used for sending messages to a destination.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-313407738574933857?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/cXyaIg5r0qM" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/mN8FHX0NWBI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/313407738574933857/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/jsp-components.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/313407738574933857?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/313407738574933857" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/mN8FHX0NWBI/jsp-components.html" title="JSP Components" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/jsp-components.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/cXyaIg5r0qM/jsp-components.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0MFQns5fCp7ImA9WxJXFUk.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-5224003845383759566</id><published>2009-06-09T05:07:00.001-07:00</published><updated>2009-06-09T05:10:13.524-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T05:10:13.524-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JSP Elements" /><category scheme="http://www.blogger.com/atom/ns#" term="JNDI" /><category scheme="http://www.blogger.com/atom/ns#" term="jms session" /><title>JSP Elements</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/j_z3QcRVKRcje2_GWXOLnaivZUo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/j_z3QcRVKRcje2_GWXOLnaivZUo/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/j_z3QcRVKRcje2_GWXOLnaivZUo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/j_z3QcRVKRcje2_GWXOLnaivZUo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/UPD0kbAZfRbPvV8nIpITlY-Obtg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UPD0kbAZfRbPvV8nIpITlY-Obtg/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/UPD0kbAZfRbPvV8nIpITlY-Obtg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UPD0kbAZfRbPvV8nIpITlY-Obtg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt;What is JMS session ?&lt;/span&gt;&lt;br /&gt;A single-threaded context for sending and receiving JMS messages. A JMS session can be nontransacted, locally transacted, or participating in a distributed transaction.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JNDI ?&lt;/span&gt;&lt;br /&gt;Abbreviate of Java Naming and Directory Interface.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JSP ?&lt;/span&gt;&lt;br /&gt;Abbreviate of JavaServer Pages.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JSP action ?&lt;/span&gt;&lt;br /&gt;A JSP element that can act on implicit objects and other server-side objects or can define new scripting variables. Actions follow the XML syntax for elements, with a start tag, a body, and an end tag; if the body is empty it can also use the empty tag syntax. The tag must use a prefix. There are standard and custom actions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JSP container ?&lt;/span&gt;&lt;br /&gt;A container that provides the same services as a servlet container and an engine that interprets and processes JSP pages into a servlet.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JSP container, distributed ?&lt;/span&gt;&lt;br /&gt;A JSP container that can run a Web application that is tagged as distributable and is spread across multiple Java virtual machines that might be running on different hosts.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JSP custom action ?&lt;/span&gt;&lt;br /&gt;A user-defined action described in a portable manner by a tag library descriptor and imported into a JSP page by a taglib directive. Custom actions are used to encapsulate recurring tasks in writing JSP pages.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JSP custom tag ?&lt;/span&gt;&lt;br /&gt;A tag that references a JSP custom action.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JSP declaration ?&lt;/span&gt;&lt;br /&gt;A JSP scripting element that declares methods, variables, or both in a JSP page.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JSP directive ?&lt;/span&gt;&lt;br /&gt;A JSP element that gives an instruction to the JSP container and is interpreted at translation time.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JSP document ?&lt;/span&gt;&lt;br /&gt;A JSP page written in XML syntax and subject to the constraints of XML documents.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JSP element ?&lt;/span&gt;&lt;br /&gt;A portion of a JSP page that is recognized by a JSP translator. An element can be a directive, an action, or a scripting element.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JSP expression ?&lt;/span&gt;&lt;br /&gt;A scripting element that contains a valid scripting language expression that is evaluated, converted to a String, and placed into the implicit out object.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JSP expression language ?&lt;/span&gt;&lt;br /&gt;A language used to write expressions that access the properties of JavaBeans components. EL expressions can be used in static text and in any standard or custom tag attribute that can accept an expression.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JSP page ?&lt;/span&gt;&lt;br /&gt;A text-based document containing static text and JSP elements that describes how to process a request to create a response. A JSP page is translated into and handles requests as a servlet.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JSP scripting element ?&lt;/span&gt;&lt;br /&gt;A JSP declaration, scriptlet, or expression whose syntax is defined by the JSP specification and whose content is written according to the scripting language used in the JSP page. The JSP specification describes the syntax and semantics for the case where the language page attribute is “java”.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JSP scriptlet ?&lt;/span&gt;&lt;br /&gt;A JSP scripting element containing any code fragment that is valid in the scripting language used in the JSP page. The JSP specification describes what is a valid scriptlet for the case where the language page attribute is “java”.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-5224003845383759566?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/UUMYcBxPfs8" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/mGntHLzjOT0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/5224003845383759566/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/jsp-elements.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/5224003845383759566?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/5224003845383759566" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/mGntHLzjOT0/jsp-elements.html" title="JSP Elements" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/jsp-elements.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/UUMYcBxPfs8/jsp-elements.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak4MSX86eCp7ImA9WxJXFUk.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-1153282759030735783</id><published>2009-06-09T05:00:00.000-07:00</published><updated>2009-06-09T05:03:08.110-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T05:03:08.110-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="OTS" /><category scheme="http://www.blogger.com/atom/ns#" term="Mixed Model" /><title>OTS,Mixed Model</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/t5fU6pFlMYqpVm3vGGknnewVp1c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/t5fU6pFlMYqpVm3vGGknnewVp1c/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/t5fU6pFlMYqpVm3vGGknnewVp1c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/t5fU6pFlMYqpVm3vGGknnewVp1c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/EXBcL1Qk_7jwwdFpL_uAGXHcI-4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EXBcL1Qk_7jwwdFpL_uAGXHcI-4/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/EXBcL1Qk_7jwwdFpL_uAGXHcI-4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EXBcL1Qk_7jwwdFpL_uAGXHcI-4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt; What is mixed-content model ?&lt;/span&gt;&lt;br /&gt;A DTD specification that defines an element as containing a mixture of text and one more other elements. The specification must start with #PCDATA, followed by diverse elements, and must end with the “zero-or-more” asterisk symbol (*).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is method-binding expression ?&lt;/span&gt;&lt;br /&gt;A Java Server Faces EL expression that refers to a method of a backing bean. This method performs either event handling, validation, or navigation processing for the UI component whose tag uses the method-binding expression.&lt;br /&gt;&lt;br /&gt;What is method permission ?&lt;br /&gt;An authorization rule that determines who is permitted to execute one or more enterprise bean methods.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is mutual authentication ?&lt;/span&gt;&lt;br /&gt;An authentication mechanism employed by two parties for the purpose of proving each other’s identity to one another.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is namespace ?&lt;/span&gt;&lt;br /&gt;A standard that lets you specify a unique label for the set of element names defined by a DTD. A document using that DTD can be included in any other document without having a conflict between element names. The elements defined in your DTD are then uniquely identified so that, for example, the parser can tell when an element should be interpreted according to your DTD rather than using the definition for an element in a different DTD.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is naming context ?&lt;/span&gt;&lt;br /&gt;A set of associations between unique, atomic, people-friendly identifiers and objects.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is naming environment ?&lt;/span&gt;&lt;br /&gt;A mechanism that allows a component to be customized without the need to access or change the component’s source code. A container implements the component’s naming environment and provides it to the component as a JNDI naming context. Each component names and accesses its environment entries using the java:comp/env JNDI context. The environment entries are declaratively specified in the component’s deployment descriptor.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is normalization ?&lt;/span&gt;&lt;br /&gt;The process of removing redundancy by modularizing, as with subroutines, and of removing superfluous differences by reducing them to a common denominator. For example, line endings from different systems are normalized by reducing them to a single new line, and multiple whitespace characters are normalized to one space.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is North American Industry Classification System (NAICS) ?&lt;/span&gt;&lt;br /&gt;A system for classifying business establishments based on the processes they use to produce goods or services.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is notation ?&lt;/span&gt;&lt;br /&gt;A mechanism for defining a data format for a non-XML document referenced as an unparsed entity. This is a holdover from SGML. A newer standard is to use MIME data types and namespaces to prevent naming conflicts.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is OASIS ?&lt;/span&gt;&lt;br /&gt;Organization for the Advancement of Structured Information Standards. A consortium that drives the development, convergence, and adoption of e-business standards.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is OMG ?&lt;/span&gt;&lt;br /&gt;Object Management Group. A consortium that produces and maintains computer industry specifications for interoperable enterprise applications.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is one-way messaging ?&lt;/span&gt;&lt;br /&gt;A method of transmitting messages without having to block until a response is received.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is ORB ?&lt;/span&gt;&lt;br /&gt;Object request broker. A library that enables CORBA objects to locate and communicate with one another.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is OS principal ?&lt;/span&gt;&lt;br /&gt;A principal native to the operating system on which the J2EE platform is executing.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is OTS ?&lt;/span&gt;&lt;br /&gt;Object Transaction Service. A definition of the interfaces that permit CORBA objects to participate in transactions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-1153282759030735783?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/du286ZWSnxA" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/QD6rV1ZU_Bk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/1153282759030735783/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/otsmixed-model.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/1153282759030735783?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/1153282759030735783" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/QD6rV1ZU_Bk/otsmixed-model.html" title="OTS,Mixed Model" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/otsmixed-model.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/du286ZWSnxA/otsmixed-model.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkMMRH4-fyp7ImA9WxJXFUk.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-2261961153707193767</id><published>2009-06-09T02:39:00.000-07:00</published><updated>2009-06-09T02:41:25.057-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T02:41:25.057-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Queues Resource Adapters" /><title>Queues Resource Adapters</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bNdOVD8Hce6BJtOMCQKRo_mJnzo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bNdOVD8Hce6BJtOMCQKRo_mJnzo/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/bNdOVD8Hce6BJtOMCQKRo_mJnzo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bNdOVD8Hce6BJtOMCQKRo_mJnzo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_NkI4sN01qziFv9YDa0aRhVG12g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_NkI4sN01qziFv9YDa0aRhVG12g/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/_NkI4sN01qziFv9YDa0aRhVG12g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_NkI4sN01qziFv9YDa0aRhVG12g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt; What is queue ?&lt;/span&gt;&lt;br /&gt;A messaging system built on the concept of message queues. Each message is addressed to a specific queue; clients extract messages from the queues established to hold their messages.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is RAR ?&lt;/span&gt;&lt;br /&gt;Resource Adapter Archive. A JAR archive that contains a resource adapter module.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is RDF ?&lt;/span&gt;&lt;br /&gt;Resource Description Framework. A standard for defining the kind of data that an XML file contains. Such information can help ensure semantic integrity-for example-by helping to make sure that a date is treated as a date rather than simply as text.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is RDF schema ?&lt;/span&gt;&lt;br /&gt;A standard for specifying consistency rules that apply to the specifications contained in an RDF.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is realm ?&lt;/span&gt;&lt;br /&gt;See security policy domain. Also, a string, passed as part of an HTTP request during basic authentication, that defines a protection space. The protected resources on a server can be partitioned into a set of protection spaces, each with its own authentication scheme or authorization database or both. In the J2EE server authentication service, a realm is a complete database of roles, users, and groups that identify valid users of a Web application or a set of Web applications.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is reentrant entity bean ?&lt;/span&gt;&lt;br /&gt;An entity bean that can handle multiple simultaneous, interleaved, or nested invocations that will not interfere with each other.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is reference ?&lt;/span&gt;&lt;br /&gt;A reference to an entity that is substituted for the reference when the XML document is parsed. It can reference a predefined entity such as &lt;&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is registry ?&lt;/span&gt;&lt;br /&gt;An infrastructure that enables the building, deployment, and discovery of Web services. It is a neutral third party that facilitates dynamic and loosely coupled business-to-business (B2B) interactions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is registry provider ?&lt;/span&gt;&lt;br /&gt;An implementation of a business registry that conforms to a specification for XML registries (for example, ebXML or UDDI).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is relationship field ?&lt;/span&gt;&lt;br /&gt;A virtual field of an entity bean having container-managed persistence; it identifies a related entity bean.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is remote interface ?&lt;/span&gt;&lt;br /&gt;One of two interfaces for an enterprise bean. The remote interface defines the business methods callable by a client.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is remove method ?&lt;/span&gt;&lt;br /&gt;Method defined in the Home interface and invoked by a client to destroy an enterprise bean.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is render kit ?&lt;/span&gt;&lt;br /&gt;A set of renderers that render output to a particular client. The JavaServer Faces implementation provides a standard HTML render kit, which is composed of renderers that can render HMTL markup.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is renderer ?&lt;/span&gt;&lt;br /&gt;A Java class that can render the output for a set of JavaServer Faces UI components.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is resource adapter ?&lt;/span&gt;&lt;br /&gt;A system-level software driver that is used by an EJB container or an application client to connect to an enterprise information system. A resource adapter typically is specific to an enterprise information system. It is available as a library and is used within the address space of the server or client using it. A resource adapter plugs in to a container. The application components deployed on the container then use the client API (exposed by the adapter) or tool-generated high-level abstractions to access the underlying enterprise information system. The resource adapter and EJB container collaborate to provide the underlying mechanisms-transactions, security, and connection pooling-for connectivity to the enterprise information system.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-2261961153707193767?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/Yc2EhB8kyII" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/K6sVTFWYqL8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/2261961153707193767/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/queues-resource-adapters.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/2261961153707193767?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/2261961153707193767" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/K6sVTFWYqL8/queues-resource-adapters.html" title="Queues Resource Adapters" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/queues-resource-adapters.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/Yc2EhB8kyII/queues-resource-adapters.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkQBQn4zeip7ImA9WxJXFUk.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-1821709378326117095</id><published>2009-06-09T02:37:00.000-07:00</published><updated>2009-06-09T02:39:13.082-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T02:39:13.082-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="J2EE Query strings" /><title>J2EE Query strings</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7E9aFR7wfOKwB789GsbUC5Cylls/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7E9aFR7wfOKwB789GsbUC5Cylls/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/7E9aFR7wfOKwB789GsbUC5Cylls/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7E9aFR7wfOKwB789GsbUC5Cylls/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Zon0QNVFmlgTC3leLqnOj0eDftE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Zon0QNVFmlgTC3leLqnOj0eDftE/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/Zon0QNVFmlgTC3leLqnOj0eDftE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Zon0QNVFmlgTC3leLqnOj0eDftE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt; What is parameter entity ?&lt;/span&gt;&lt;br /&gt;An entity that consists of DTD specifications, as distinct from a general entity. A parameter entity defined in the DTD can then be referenced at other points, thereby eliminating the need to recode the definition at each location it is used.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is parsed entity ?&lt;/span&gt;&lt;br /&gt;A general entity that contains XML and therefore is parsed when inserted into the XML document, as opposed to an unparsed entity.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is parser ?&lt;/span&gt;&lt;br /&gt;A module that reads in XML data from an input source and breaks it into chunks so that your program knows when it is working with a tag, an attribute, or element data. A nonvalidating parser ensures that the XML data is well formed but does not verify that it is valid. See also validating parser.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is passivation ?&lt;/span&gt;&lt;br /&gt;The process of transferring an enterprise bean from memory to secondary storage. See activation.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is persistence ?&lt;/span&gt;&lt;br /&gt;The protocol for transferring the state of an entity bean between its instance variables and an underlying database.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is persistent field ?&lt;/span&gt;&lt;br /&gt;A virtual field of an entity bean that has container-managed persistence; it is stored in a database.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is POA ?&lt;/span&gt;&lt;br /&gt;Portable Object Adapter. A CORBA standard for building server-side applications that are portable across heterogeneous ORBs.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What is point-to-point messaging system ?&lt;/span&gt;&lt;br /&gt;A messaging system built on the concept of message queues. Each message is addressed to a specific queue; clients extract messages from the queues established to hold their messages.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is primary key ?&lt;/span&gt;&lt;br /&gt;An object that uniquely identifies an entity bean within a home.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What is principal ?&lt;/span&gt;&lt;br /&gt;The identity assigned to a user as a result of authentication.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is privilege ?&lt;/span&gt;&lt;br /&gt;A security attribute that does not have the property of uniqueness and that can be shared by many principals.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is processing instruction ?&lt;/span&gt;&lt;br /&gt;Information contained in an XML structure that is intended to be interpreted by a specific application.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What is programmatic security ?&lt;/span&gt;&lt;br /&gt;Security decisions that are made by security-aware applications. Programmatic security is useful when declarative security alone is not sufficient to express the security model of an application.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is prolog ?&lt;/span&gt;&lt;br /&gt;The part of an XML document that precedes the XML data. The prolog includes the declaration and an optional DTD.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is public key certificate ?&lt;/span&gt;&lt;br /&gt;Used in client-certificate authentication to enable the server, and optionally the client, to authenticate each other. The public key certificate is the digital equivalent of a passport. It is issued by a trusted organization, called a certificate authority, and provides identification for the bearer.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is publish/subscribe messaging system ?&lt;/span&gt;&lt;br /&gt;A messaging system in which clients address messages to a specific node in a content hierarchy, called a topic. Publishers and subscribers are generally anonymous and can dynamically publish or subscribe to the content hierarchy. The system takes care of distributing the messages arriving from a node’s multiple publishers to its multiple subscribers.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is query string ?&lt;/span&gt;&lt;br /&gt;A component of an HTTP request URL that contains a set of parameters and values that affect the handling of the request.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-1821709378326117095?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/MDkBFW0Ro2w" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/SfEfE4HH8uo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/1821709378326117095/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/j2ee-query-strings.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/1821709378326117095?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/1821709378326117095" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/SfEfE4HH8uo/j2ee-query-strings.html" title="J2EE Query strings" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/j2ee-query-strings.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/MDkBFW0Ro2w/j2ee-query-strings.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0MFQ3s5eCp7ImA9WxJXFU4.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-5769107216687161373</id><published>2009-06-09T02:22:00.000-07:00</published><updated>2009-06-09T02:23:32.520-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T02:23:32.520-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JMS" /><category scheme="http://www.blogger.com/atom/ns#" term="JSF" /><title>JSF  JMS</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Fr_bnovu0PYCec4mwOGkGXcPdwY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Fr_bnovu0PYCec4mwOGkGXcPdwY/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/Fr_bnovu0PYCec4mwOGkGXcPdwY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Fr_bnovu0PYCec4mwOGkGXcPdwY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/h3QI-q9ZdM0buU0H_HrLSauVi4I/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/h3QI-q9ZdM0buU0H_HrLSauVi4I/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/h3QI-q9ZdM0buU0H_HrLSauVi4I/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/h3QI-q9ZdM0buU0H_HrLSauVi4I/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt; What is JavaServer Faces conversion model ?&lt;/span&gt;&lt;br /&gt;A mechanism for converting between string-based markup generated by JavaServer Faces UI components and server-side Java objects.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JavaServer Faces event and listener model ?&lt;/span&gt;&lt;br /&gt;A mechanism for determining how events emitted by JavaServer Faces UI components are handled. This model is based on the JavaBeans component event and listener model.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What is JavaServer Faces expression language ?&lt;/span&gt;&lt;br /&gt;A simple expression language used by a JavaServer Faces UI component tag attributes to bind the associated component to a bean property or to bind the associated component’s value to a method or an external data source, such as a bean property. Unlike JSP EL expressions, JavaServer Faces EL expressions are evaluated by the JavaServer Faces implementation rather than by the Web container.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JavaServer Faces navigation model ?&lt;/span&gt;&lt;br /&gt;A mechanism for defining the sequence in which pages in a JavaServer Faces application are displayed.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JavaServer Faces UI component ?&lt;/span&gt;&lt;br /&gt;A user interface control that outputs data to a client or allows a user to input data to a JavaServer Faces application.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JavaServer Faces UI component class ?&lt;/span&gt;&lt;br /&gt;A JavaServer Faces class that defines the behavior and properties of a JavaServer Faces UI component.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JavaServer Faces validation model ?&lt;/span&gt;&lt;br /&gt;A mechanism for validating the data a user inputs to a JavaServer Faces UI component.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JavaServer Pages (JSP) ?&lt;/span&gt;&lt;br /&gt;An extensible Web technology that uses static data, JSP elements, and server-side Java objects to generate dynamic content for a client. Typically the static data is HTML or XML elements, and in many cases the client is a Web browser.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JavaServer Pages Standard Tag Library (JSTL) ?&lt;/span&gt;&lt;br /&gt;A tag library that encapsulates core functionality common to many JSP applications. JSTL has support for common, structural tasks such as iteration and conditionals, tags for manipulating XML documents, internationalization and locale-specific formatting tags, SQL tags, and functions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JAXR client ?&lt;/span&gt;&lt;br /&gt;A client program that uses the JAXR API to access a business registry via a JAXR provider.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JAXR provider ?&lt;/span&gt;&lt;br /&gt;An implementation of the JAXR API that provides access to a specific registry provider or to a class of registry providers that are based on a common specification.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What is JDBC ?&lt;/span&gt;&lt;br /&gt;An JDBC for database-independent connectivity between the J2EE platform and a wide range of data sources.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JMS ?&lt;/span&gt;&lt;br /&gt;Java Message Service.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JMS administered object ?&lt;/span&gt;&lt;br /&gt;A preconfigured JMS object (a resource manager connection factory or a destination) created by an administrator for the use of JMS clients and placed in a JNDI namespace.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JMS application ?&lt;/span&gt;&lt;br /&gt;One or more JMS clients that exchange messages.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JMS client ?&lt;/span&gt;&lt;br /&gt;A Java language program that sends or receives messages.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JMS provider ?&lt;/span&gt;&lt;br /&gt;A messaging system that implements the Java Message Service as well as other administrative and control functionality needed in a full-featured messaging product.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-5769107216687161373?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/2LlsfpS5hS4" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/79SFQz7XcpQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/5769107216687161373/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/jsf-jms.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/5769107216687161373?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/5769107216687161373" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/79SFQz7XcpQ/jsf-jms.html" title="JSF  JMS" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/jsf-jms.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/2LlsfpS5hS4/jsf-jms.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0UMRnozfyp7ImA9WxJXFU4.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-6803702638187111224</id><published>2009-06-09T02:19:00.000-07:00</published><updated>2009-06-09T02:21:27.487-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T02:21:27.487-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="J2ME" /><title>J2ME</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5hTyParZM5UqPWx1tYcQad79Pmk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5hTyParZM5UqPWx1tYcQad79Pmk/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/5hTyParZM5UqPWx1tYcQad79Pmk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5hTyParZM5UqPWx1tYcQad79Pmk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/eJHSnLWqhUeUoXZIeXZkgYBy9K8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eJHSnLWqhUeUoXZIeXZkgYBy9K8/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/eJHSnLWqhUeUoXZIeXZkgYBy9K8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eJHSnLWqhUeUoXZIeXZkgYBy9K8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt; What is J2ME ?&lt;/span&gt;&lt;br /&gt;Abbreviate of Java 2 Platform, Micro Edition.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is J2SE ?&lt;/span&gt;&lt;br /&gt;Abbreviate of Java 2 Platform, Standard Edition.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JAR ?&lt;/span&gt;&lt;br /&gt;Java archive. A platform-independent file format that permits many files to be aggregated into one file.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is Java 2 Platform, Enterprise Edition (J2EE) ?&lt;/span&gt;&lt;br /&gt;An environment for developing and deploying enterprise applications. The J2EE platform consists of a set of services, application programming interfaces (APIs), and protocols that provide the functionality for developing multitiered, Web-based applications.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is Java 2 Platform, Micro Edition (J2ME) ?&lt;/span&gt;&lt;br /&gt;A highly optimized Java runtime environment targeting a wide range of consumer products, including pagers, cellular phones, screen phones, digital set-top boxes, and car navigation systems.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is Java 2 Platform, Standard Edition (J2SE) ?&lt;/span&gt;&lt;br /&gt;The core Java technology platform.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is Java API for XML Processing (JAXP) ?&lt;/span&gt;&lt;br /&gt;An API for processing XML documents. JAXP leverages the parser standards SAX and DOM so that you can choose to parse your data as a stream of events or to build a tree-structured representation of it. JAXP supports the XSLT standard, giving you control over the presentation of the data and enabling you to convert the data to other XML documents or to other formats, such as HTML. JAXP provides namespace support, allowing you to work with schema that might otherwise have naming conflicts.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is Java API for XML Registries (JAXR) ?&lt;/span&gt;&lt;br /&gt;An API for accessing various kinds of XML registries.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is Java API for XML-based RPC (JAX-RPC) ?&lt;/span&gt;&lt;br /&gt;An API for building Web services and clients that use remote procedure calls and XML.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is Java IDL ?&lt;/span&gt;&lt;br /&gt;A technology that provides CORBA interoperability and connectivity capabilities for the J2EE platform. These capabilities enable J2EE applications to invoke operations on remote network services using the Object Management Group IDL and IIOP.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is Java Message Service (JMS) ?&lt;/span&gt;&lt;br /&gt;An API for invoking operations on enterprise messaging systems.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is Java Naming and Directory Interface (JNDI) ?&lt;/span&gt;&lt;br /&gt;An API that provides naming and directory functionality.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is Java Secure Socket Extension (JSSE) ?&lt;/span&gt;&lt;br /&gt;A set of packages that enable secure Internet communications.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is Java Transaction API (JTA) ?&lt;/span&gt;&lt;br /&gt;An API that allows applications and J2EE servers to access transactions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is Java Transaction Service (JTS) ?&lt;/span&gt;&lt;br /&gt;Specifies the implementation of a transaction manager that supports JTA and implements the Java mapping of the Object Management Group Object Transaction Service 1.1 specification at the level below the API.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JavaBeans component ?&lt;/span&gt;&lt;br /&gt;A Java class that can be manipulated by tools and composed into applications. A JavaBeans component must adhere to certain property and event interface conventions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JavaMail ?&lt;/span&gt;&lt;br /&gt;An API for sending and receiving email.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is JavaServer Faces Technology ?&lt;/span&gt;&lt;br /&gt;A framework for building server-side user interfaces for Web applications written in the Java programming language.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-6803702638187111224?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/lfYt7PvYKcQ" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/vMrKk11tmqg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/6803702638187111224/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/j2me.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/6803702638187111224?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/6803702638187111224" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/vMrKk11tmqg/j2me.html" title="J2ME" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/j2me.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/lfYt7PvYKcQ/j2me.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0YBQn07cSp7ImA9WxJXFU4.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-162289622034510414</id><published>2009-06-09T02:17:00.000-07:00</published><updated>2009-06-09T02:19:13.309-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T02:19:13.309-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="HTML Vs J2EE" /><title>HTML Vs J2EE</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bTFieEfcbYDEG4XTguvBPTYRsos/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bTFieEfcbYDEG4XTguvBPTYRsos/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/bTFieEfcbYDEG4XTguvBPTYRsos/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bTFieEfcbYDEG4XTguvBPTYRsos/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/wu5xsHbBbzEnKRmqkVrhmesjNAQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wu5xsHbBbzEnKRmqkVrhmesjNAQ/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/wu5xsHbBbzEnKRmqkVrhmesjNAQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wu5xsHbBbzEnKRmqkVrhmesjNAQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt; What is HTML ?&lt;/span&gt;&lt;br /&gt;Hypertext Markup Language. A markup language for hypertext documents on the Internet. HTML enables the embedding of images, sounds, video streams, form fields, references to other objects with URLs, and basic text formatting.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is HTTP ?&lt;/span&gt;&lt;br /&gt;Hypertext Transfer Protocol. The Internet protocol used to retrieve hypertext objects from remote hosts. HTTP messages consist of requests from client to server and responses from server to client.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is HTTPS ?&lt;/span&gt;&lt;br /&gt;HTTP layered over the SSL protocol.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is IDL ?&lt;/span&gt;&lt;br /&gt;Interface Definition Language. A language used to define interfaces to remote CORBA objects. The interfaces are independent of operating systems and programming languages.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is IIOP ?&lt;/span&gt;&lt;br /&gt;Internet Inter-ORB Protocol. A protocol used for communication between CORBA object request brokers.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is impersonation ?&lt;/span&gt;&lt;br /&gt;An act whereby one entity assumes the identity and privileges of another entity without restrictions and without any indication visible to the recipients of the impersonator’s calls that delegation has taken place. Impersonation is a case of simple delegation.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is initialization parameter ?&lt;/span&gt;&lt;br /&gt;A parameter that initializes the context associated with a servlet.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is ISO 3166 ?&lt;/span&gt;&lt;br /&gt;The international standard for country codes maintained by the International Organization for Standardization (ISO).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is ISV ?&lt;/span&gt;&lt;br /&gt;Independent software vendor.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is J2EE ?&lt;/span&gt;&lt;br /&gt;Java 2 Platform, Enterprise Edition.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What is J2EE application ?&lt;/span&gt;&lt;br /&gt;Any deployable unit of J2EE functionality. This can be a single J2EE module or a group of modules packaged into an EAR file along with a J2EE application deployment descriptor. J2EE applications are typically engineered to be distributed across multiple computing tiers.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What is J2EE component ?&lt;/span&gt;&lt;br /&gt;A self-contained functional software unit supported by a container and configurable at deployment time. The J2EE specification defines the following J2EE components: Application clients and applets are components that run on the client. Java servlet and JavaServer Pages (JSP) technology components are Web components that run on the server. Enterprise JavaBeans (EJB) components (enterprise beans) are business components that run on the server. J2EE components are written in the Java programming language and are compiled in the same way as any program in the language. The difference between J2EE components and “standard” Java classes is that J2EE components are assembled into a J2EE application, verified to be well formed and in compliance with the J2EE specification, and deployed to production, where they are run and managed by the J2EE server or client container.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is J2EE module ?&lt;/span&gt;&lt;br /&gt;A software unit that consists of one or more J2EE components of the same container type and one deployment descriptor of that type. There are four types of modules: EJB, Web, application client, and resource adapter. Modules can be deployed as stand-alone units or can be assembled into a J2EE application.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is J2EE product ?&lt;/span&gt;&lt;br /&gt;An implementation that conforms to the J2EE platform specification.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is J2EE product provider ?&lt;/span&gt;&lt;br /&gt;A vendor that supplies a J2EE product.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What is J2EE server ?&lt;/span&gt;&lt;br /&gt;The runtime portion of a J2EE product. A J2EE server provides EJB or Web containers or both.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-162289622034510414?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/xY1wBcSsrEo" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/EkFpVa2PVOA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/162289622034510414/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/html-vs-j2ee.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/162289622034510414?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/162289622034510414" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/EkFpVa2PVOA/html-vs-j2ee.html" title="HTML Vs J2EE" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/html-vs-j2ee.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/xY1wBcSsrEo/html-vs-j2ee.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0cEQnw9eCp7ImA9WxJXFU4.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-703802360038382687</id><published>2009-06-09T02:14:00.000-07:00</published><updated>2009-06-09T02:16:43.260-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T02:16:43.260-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Entity Bean" /><title>Entity Bean</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Z0OYQHyRcxt2RGc0-QpizSQq-i0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Z0OYQHyRcxt2RGc0-QpizSQq-i0/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/Z0OYQHyRcxt2RGc0-QpizSQq-i0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Z0OYQHyRcxt2RGc0-QpizSQq-i0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/mTWsdjEPkVPtm284V4DcLddQzI0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mTWsdjEPkVPtm284V4DcLddQzI0/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/mTWsdjEPkVPtm284V4DcLddQzI0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mTWsdjEPkVPtm284V4DcLddQzI0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt; What is entity bean ?&lt;/span&gt;&lt;br /&gt;An enterprise bean that represents persistent data maintained in a database. An entity bean can manage its own persistence or can delegate this function to its container. An entity bean is identified by a primary key. If the container in which an entity bean is hosted crashes, the entity bean, its primary key, and any remote references survive the crash.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is entity reference ?&lt;/span&gt;&lt;br /&gt;A reference to an entity that is substituted for the reference when the XML document is parsed. It can reference a predefined entity such as &lt;&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is error ?&lt;/span&gt;&lt;br /&gt;A SAX parsing error is generally a validation error; in other words, it occurs when an XML document is not valid, although it can also occur if the declaration specifies an XML version that the parser cannot handle. See also fatal error, warning.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What is Extensible Markup Language ?&lt;/span&gt;&lt;br /&gt;XML.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What is external entity ?&lt;/span&gt;&lt;br /&gt;An entity that exists as an external XML file, which is included in the XML document using an entity reference.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is external subset ?&lt;/span&gt;&lt;br /&gt;That part of a DTD that is defined by references to external DTD files.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is fatal error ?&lt;/span&gt;&lt;br /&gt;A fatal error occurs in the SAX parser when a document is not well formed or otherwise cannot be processed. See also error, warning.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is filter ?&lt;/span&gt;&lt;br /&gt;An object that can transform the header or content (or both) of a request or response. Filters differ from Web components in that they usually do not themselves create responses but rather modify or adapt the requests for a resource, and modify or adapt responses from a resource. A filter should not have any dependencies on a Web resource for which it is acting as a filter so that it can be composable with more than one type of Web resource.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What is filter chain ?&lt;/span&gt;&lt;br /&gt;A concatenation of XSLT transformations in which the output of one transformation becomes the input of the next.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is finder method ?&lt;/span&gt;&lt;br /&gt;A method defined in the Interview Questions - Home interface and invoked by a client to locate an entity bean.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is form-based authentication ?&lt;/span&gt;&lt;br /&gt;An authentication mechanism in which a Web container provides an application-specific form for logging in. This form of authentication uses Base64 encoding and can expose user names and passwords&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What is general entity ?&lt;/span&gt;&lt;br /&gt;An entity that is referenced as part of an XML document’s content, as distinct from a parameter entity, which is referenced in the DTD. A general entity can be a parsed entity or an unparsed entity.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is group ?&lt;/span&gt;&lt;br /&gt;An authenticated set of users classified by common traits such as job title or customer profile. Groups are also associated with a set of roles, and every user that is a member of a group inherits all the roles assigned to that group.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is handle ?&lt;/span&gt;&lt;br /&gt;An object that identifies an enterprise bean. A client can serialize the handle and then later deserialize it to obtain a reference to the enterprise bean.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is Interview Questions - Home handle ?&lt;/span&gt;&lt;br /&gt;An object that can be used to obtain a reference to the Interview Questions - Home interface. A Interview Questions - Home handle can be serialized and written to stable storage and de-serialized to obtain the reference.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is Interview Questions - Home interface ?&lt;/span&gt;&lt;br /&gt;One of two interfaces for an enterprise bean. The Interview Questions - Home interface defines zero or more methods for managing an enterprise bean. The Interview Questions - Home interface of a session bean defines create and remove methods, whereas the Interview Questions - Home interface of an entity bean defines create, finder, and remove methods.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-703802360038382687?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/f7tK5W1JuZ8" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/J0oCCUX9arA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/703802360038382687/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/entity-bean.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/703802360038382687?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/703802360038382687" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/J0oCCUX9arA/entity-bean.html" title="Entity Bean" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/entity-bean.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/f7tK5W1JuZ8/entity-bean.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEUGSHY5fyp7ImA9WxJXFUg.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-8843582301443856796</id><published>2009-06-09T02:12:00.000-07:00</published><updated>2009-06-09T07:03:49.827-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T07:03:49.827-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JNDI" /><category scheme="http://www.blogger.com/atom/ns#" term="entity" /><category scheme="http://www.blogger.com/atom/ns#" term="EJB" /><category scheme="http://www.blogger.com/atom/ns#" term="EJB Server" /><category scheme="http://www.blogger.com/atom/ns#" term="EIS" /><category scheme="http://www.blogger.com/atom/ns#" term="EJBQL" /><category scheme="http://www.blogger.com/atom/ns#" term="EJB Home" /><title>EJB</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/wYw-0HTxKACeTKj2f13MIUapnnk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wYw-0HTxKACeTKj2f13MIUapnnk/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/wYw-0HTxKACeTKj2f13MIUapnnk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wYw-0HTxKACeTKj2f13MIUapnnk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/4QCplkVepQT_LnUMPlp3f_7IIcw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4QCplkVepQT_LnUMPlp3f_7IIcw/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/4QCplkVepQT_LnUMPlp3f_7IIcw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4QCplkVepQT_LnUMPlp3f_7IIcw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt; What is EJB Home object ?&lt;/span&gt;&lt;br /&gt;An object that provides the life-cycle operations (create, remove, find) for an enterprise bean. The class for the EJB Home object is generated by the container’s deployment tools. The EJB Home object implements the enterprise bean’s Home interface. The client references an EJB Home object to perform life-cycle operations on an EJB object. The client uses JNDI to locate an EJB Home object.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What is EJB JAR file ?&lt;/span&gt;&lt;br /&gt;A JAR archive that contains an EJB module.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is EJB module ?&lt;/span&gt;&lt;br /&gt;A deployable unit that consists of one or more enterprise beans and an EJB deployment descriptor.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is EJB object ?&lt;/span&gt;&lt;br /&gt;An object whose class implements the enterprise bean’s remote interface. A client never references an enterprise bean instance directly; a client always references an EJB object. The class of an EJB object is generated by a container’s deployment tools.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is EJB server ?&lt;/span&gt;&lt;br /&gt;Software that provides services to an EJB container. For example, an EJB container typically relies on a transaction manager that is part of the EJB server to perform the two-phase commit across all the participating resource managers. The J2EE architecture assumes that an EJB container is hosted by an EJB server from the same vendor, so it does not specify the contract between these two entities. An EJB server can host one or more EJB containers.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is EJB server provider ?&lt;/span&gt;&lt;br /&gt;A vendor that supplies an EJB server.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is element ?&lt;/span&gt;&lt;br /&gt;A unit of XML data, delimited by tags. An XML element can enclose other elements.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is empty tag ?&lt;/span&gt;&lt;br /&gt;A tag that does not enclose any content.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is enterprise bean ?&lt;/span&gt;&lt;br /&gt;A J2EE component that implements a business task or business entity and is hosted by an EJB container; either an entity bean, a session bean, or a message-driven bean.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is enterprise bean provider ?&lt;/span&gt;&lt;br /&gt;An application developer who produces enterprise bean classes, remote and Interview Questions - Home interfaces, and deployment descriptor files, and packages them in an EJB JAR file.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is enterprise information system ?&lt;/span&gt;&lt;br /&gt;The applications that constitute an enterprise’s existing system for handling companywide information. These applications provide an information infrastructure for an enterprise. An enterprise information system offers a well-defined set of services to its clients. These services are exposed to clients as local or remote interfaces or both. Examples of enterprise information systems include enterprise resource planning systems, mainframe transaction processing systems, and legacy database systems.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is enterprise information system resource ?&lt;/span&gt;&lt;br /&gt;An entity that provides enterprise information system-specific functionality to its clients. Examples are a record or set of records in a database system, a business object in an enterprise resource planning system, and a transaction program in a transaction processing system.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is Enterprise JavaBeans (EJB) ?&lt;/span&gt;&lt;br /&gt;A component architecture for the development and deployment of object-oriented, distributed, enterprise-level applications. Applications written using the Enterprise JavaBeans architecture are scalable, transactional, and secure.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is Enterprise JavaBeans Query Language (EJB QL) ?&lt;/span&gt;&lt;br /&gt;Defines the queries for the finder and select methods of an entity bean having container-managed persistence. A subset of SQL92, EJB QL has extensions that allow navigation over the relationships defined in an entity bean’s abstract schema.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is an entity ?&lt;/span&gt;&lt;br /&gt;A distinct, individual item that can be included in an XML document by referencing it. Such an entity reference can name an entity as small as a character (for example, &lt; , which references the less-than symbol or left angle bracket, &lt;). An entity reference can also reference an entire document, an external entity, or a collection of DTD definitions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-8843582301443856796?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/cFwUuJbRAjo" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/R7jtBQtRZ2k" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/8843582301443856796/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/ejb_09.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/8843582301443856796?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/8843582301443856796" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/R7jtBQtRZ2k/ejb_09.html" title="EJB" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/ejb_09.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/cFwUuJbRAjo/ejb_09.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkEHQHoyfip7ImA9WxJXFU4.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-3070201677288957972</id><published>2009-06-09T02:09:00.000-07:00</published><updated>2009-06-09T02:10:31.496-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T02:10:31.496-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="J2EE Deployment" /><title>J2EE Deployment</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/RkHpcLMXgdvtT798N_7oIBp8bhw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RkHpcLMXgdvtT798N_7oIBp8bhw/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/RkHpcLMXgdvtT798N_7oIBp8bhw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RkHpcLMXgdvtT798N_7oIBp8bhw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/isN7tV1HwZrPpoBJ2MqgOCH_H_Y/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/isN7tV1HwZrPpoBJ2MqgOCH_H_Y/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/isN7tV1HwZrPpoBJ2MqgOCH_H_Y/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/isN7tV1HwZrPpoBJ2MqgOCH_H_Y/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt;What is deployment descriptor ?&lt;/span&gt;&lt;br /&gt;An XML file provided with each module and J2EE application that describes how they should be deployed. The deployment descriptor directs a deployment tool to deploy a module or application with specific container options and describes specific configuration requirements that a deployer must resolve.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is destination ?&lt;/span&gt;&lt;br /&gt;A JMS administered object that encapsulates the identity of a JMS queue or topic. See point-to-point messaging system, publish/subscribe messaging system.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is digest authentication ?&lt;/span&gt;&lt;br /&gt;An authentication mechanism in which a Web application authenticates itself to a Web server by sending the server a message digest along with its HTTP request message. The digest is computed by employing a one-way hash algorithm to a concatenation of the HTTP request message and the client’s password. The digest is typically much smaller than the HTTP request and doesn’t contain the password.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is distributed application ?&lt;/span&gt;&lt;br /&gt;An application made up of distinct components running in separate runtime environments, usually on different platforms connected via a network. Typical distributed applications are two-tier (client-server), three-tier (client-middleware-server), and multitier (client-multiple middleware-multiple servers).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is document ?&lt;/span&gt;&lt;br /&gt;In general, an XML structure in which one or more elements contains text intermixed with subelements.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is Document Object Model ?&lt;/span&gt;&lt;br /&gt;An API for accessing and manipulating XML documents as tree structures. DOM provides platform-neutral, language-neutral interfaces that enables programs and scripts to dynamically access and modify content and structure in XML documents.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is document root ?&lt;/span&gt;&lt;br /&gt;The top-level directory of a WAR. The document root is where JSP pages, client-side classes and archives, and static Web resources are stored.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is DTD ?&lt;/span&gt;&lt;br /&gt;Document type definition. An optional part of the XML document prolog, as specified by the XML standard. The DTD specifies constraints on the valid tags and tag sequences that can be in the document. The DTD has a number of shortcomings, however, and this has led to various schema proposals. For example, the DTD entry says that the XML element called username contains parsed character data-that is, text alone, with no other structural elements under it. The DTD includes both the local subset, defined in the current file, and the external subset, which consists of the definitions contained in external DTD files that are referenced in the local subset using a parameter entity.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is durable subscription ?&lt;/span&gt;&lt;br /&gt;In a JMS publish/subscribe messaging system, a subscription that continues to exist whether or not there is a current active subscriber object. If there is no active subscriber, the JMS provider retains the subscription’s messages until they are received by the subscription or until they expire.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is EAR file ?&lt;/span&gt;&lt;br /&gt;Enterprise Archive file. A JAR archive that contains a J2EE application.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is ebXML ?&lt;/span&gt;&lt;br /&gt;Electronic Business XML. A group of specifications designed to enable enterprises to conduct business through the exchange of XML-based messages. It is sponsored by OASIS and the United Nations Centre for the Facilitation of Procedures and Practices in Administration, Commerce and Transport (U.N./CEFACT).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is EJB ?&lt;/span&gt;&lt;br /&gt;Enterprise JavaBeans.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is EJB container ?&lt;/span&gt;&lt;br /&gt;A container that implements the EJB component contract of the J2EE architecture. This contract specifies a runtime environment for enterprise beans that includes security, concurrency, life-cycle management, transactions, deployment, naming, and other services. An EJB container is provided by an EJB or J2EE server.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is EJB container provider ?&lt;/span&gt;&lt;br /&gt;A vendor that supplies an EJB container.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What is EJB context ?&lt;/span&gt;&lt;br /&gt;A vendor that supplies an EJB container. An object that allows an enterprise bean to invoke services provided by the container and to obtain the information about the caller of a client-invoked method.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-3070201677288957972?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/j6dTHxUBxHI" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/1e2yddmUTkM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/3070201677288957972/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/j2ee-deployment.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/3070201677288957972?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/3070201677288957972" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/1e2yddmUTkM/j2ee-deployment.html" title="J2EE Deployment" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/j2ee-deployment.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/j6dTHxUBxHI/j2ee-deployment.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkMMQ3w7cSp7ImA9WxJXFU4.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-5374585017675487729</id><published>2009-06-09T02:06:00.000-07:00</published><updated>2009-06-09T02:08:02.209-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T02:08:02.209-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="J2EE Containers" /><title>J2EE Containers</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/JqZUBofa_g2z33BFYB2689wr2eU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JqZUBofa_g2z33BFYB2689wr2eU/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/JqZUBofa_g2z33BFYB2689wr2eU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JqZUBofa_g2z33BFYB2689wr2eU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/OT-SMoYFzJ9QMo8tpKvwLzLZcJQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OT-SMoYFzJ9QMo8tpKvwLzLZcJQ/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/OT-SMoYFzJ9QMo8tpKvwLzLZcJQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OT-SMoYFzJ9QMo8tpKvwLzLZcJQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt; What is container-managed sign-on ?&lt;/span&gt;&lt;br /&gt;The mechanism whereby security information needed for signing on to a resource is supplied by the container.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is container-managed transaction ?&lt;/span&gt;&lt;br /&gt;A transaction whose boundaries are defined by an EJB container. An entity bean must use container-managed transactions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is content ?&lt;/span&gt;&lt;br /&gt;In an XML document, the part that occurs after the prolog, including the root element and everything it contains.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is context attribute ?&lt;/span&gt;&lt;br /&gt;An object bound into the context associated with a servlet.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is context root ?&lt;/span&gt;&lt;br /&gt;A name that gets mapped to the document root of a Web application.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What is conversational state ?&lt;/span&gt;&lt;br /&gt;The field values of a session bean plus the transitive closure of the objects reachable from the bean’s fields. The transitive closure of a bean is defined in terms of the serialization protocol for the Java programming language, that is, the fields that would be stored by serializing the bean instance.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is CORBA ?&lt;/span&gt;&lt;br /&gt;Common Object Request Broker Architecture. A language-independent distributed object model specified by the OMG.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is create method ?&lt;/span&gt;&lt;br /&gt;A method defined in the Interview Questions - Home interface and invoked by a client to create an enterprise bean.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is credentials ?&lt;/span&gt;&lt;br /&gt;The information describing the security attributes of a principal.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is CSS ?&lt;/span&gt;&lt;br /&gt;Cascading style sheet. A stylesheet used with HTML and XML documents to add a style to all elements marked with a particular tag, for the direction of browsers or other presentation mechanisms.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is CTS ?&lt;/span&gt;&lt;br /&gt;Compatibility test suite. A suite of compatibility tests for verifying that a J2EE product complies with the J2EE platform specification.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is data ?&lt;/span&gt;&lt;br /&gt;The contents of an element in an XML stream, generally used when the element does not contain any subelements. When it does, the term content is generally used. When the only text in an XML structure is contained in simple elements and when elements that have subelements have little or no data mixed in, then that structure is often thought of as XML data, as opposed to an XML document.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is DDP ?&lt;/span&gt;&lt;br /&gt;Document-driven programming. The use of XML to define applications.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is declaration ?&lt;/span&gt;&lt;br /&gt;The very first thing in an XML document, which declares it as XML. The minimal declaration is . The declaration is part of the document prolog.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is declarative security ?&lt;/span&gt;&lt;br /&gt;Mechanisms used in an application that are expressed in a declarative syntax in a deployment descriptor.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is delegation ?&lt;/span&gt;&lt;br /&gt;An act whereby one principal authorizes another principal to use its identity or privileges with some restrictions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is deployer ?&lt;/span&gt;&lt;br /&gt;A person who installs J2EE modules and applications into an operational environment.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is deployment ?&lt;/span&gt;&lt;br /&gt;The process whereby software is installed into an operational environment.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-5374585017675487729?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/H-n_sKWATTU" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/HPjWm6k7fWA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/5374585017675487729/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/j2ee-containers.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/5374585017675487729?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/5374585017675487729" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/HPjWm6k7fWA/j2ee-containers.html" title="J2EE Containers" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/j2ee-containers.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/H-n_sKWATTU/j2ee-containers.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEYAQX46cSp7ImA9WxJXFUg.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-1854799161496267020</id><published>2009-06-09T02:01:00.000-07:00</published><updated>2009-06-09T07:02:20.019-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T07:02:20.019-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="CMP" /><category scheme="http://www.blogger.com/atom/ns#" term="public key" /><category scheme="http://www.blogger.com/atom/ns#" term="certificate authority" /><category scheme="http://www.blogger.com/atom/ns#" term="J2EE" /><category scheme="http://www.blogger.com/atom/ns#" term="CDATA" /><category scheme="http://www.blogger.com/atom/ns#" term="commit" /><category scheme="http://www.blogger.com/atom/ns#" term="JSFcascade delete" /><title>J2EE</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ZD2zpmLUfzAO8vZXOlMCMsW3M6Y/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZD2zpmLUfzAO8vZXOlMCMsW3M6Y/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/ZD2zpmLUfzAO8vZXOlMCMsW3M6Y/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZD2zpmLUfzAO8vZXOlMCMsW3M6Y/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/2ZdYjG_FD9LsvH4MtLMhO57Y31E/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2ZdYjG_FD9LsvH4MtLMhO57Y31E/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/2ZdYjG_FD9LsvH4MtLMhO57Y31E/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2ZdYjG_FD9LsvH4MtLMhO57Y31E/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What is binding (JavaServer Faces technology) ?&lt;/span&gt;&lt;br /&gt;Wiring UI components to back-end data sources such as backing bean properties.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is build file ?&lt;/span&gt;&lt;br /&gt;The XML file that contains one or more asant targets. A target is a set of tasks you want to be executed. When starting asant, you can select which targets you want to have executed. When no target is given, the project’s default target is executed.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is business logic ?&lt;/span&gt;&lt;br /&gt;The code that implements the functionality of an application. In the Enterprise JavaBeans architecture, this logic is implemented by the methods of an enterprise bean.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is business method ?&lt;/span&gt;&lt;br /&gt;A method of an enterprise bean that implements the business logic or rules of an application.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is callback methods ?&lt;/span&gt;&lt;br /&gt;Component methods called by the container to notify the component of important events in its life cycle.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is caller ?&lt;/span&gt;&lt;br /&gt;Same as caller principal.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is caller principal ?&lt;/span&gt;&lt;br /&gt;The principal that identifies the invoker of the enterprise bean method.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is cascade delete ?&lt;/span&gt;&lt;br /&gt;A deletion that triggers another deletion. A cascade delete can be specified for an entity bean that has container-managed persistence.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is CDATA ?&lt;/span&gt;&lt;br /&gt;A predefined XML tag for character data that means “don’t interpret these characters,” as opposed to parsed character data (PCDATA), in which the normal rules of XML syntax apply. CDATA sections are typically used to show examples of XML syntax.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is certificate authority ?&lt;/span&gt;&lt;br /&gt;A trusted organization that issues public key certificates and provides identification to the bearer.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What is client-certificate authentication ?&lt;/span&gt;&lt;br /&gt;An authentication mechanism that uses HTTP over SSL, in which the server and, optionally, the client authenticate each other with a public key certificate that conforms to a standard that is defined by X.509 Public Key Infrastructure.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What is comment ?&lt;/span&gt;&lt;br /&gt;In an XML document, text that is ignored unless the parser is specifically told to recognize it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is commit ?&lt;/span&gt;&lt;br /&gt;The point in a transaction when all updates to any resources involved in the transaction are made permanent.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is component contract ?&lt;/span&gt;&lt;br /&gt;The contract between a J2EE component and its container. The contract includes life-cycle management of the component, a context interface that the instance uses to obtain various information and services from its container, and a list of services that every container must provide for its components.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What is component-managed sign-on ?&lt;/span&gt;&lt;br /&gt;A mechanism whereby security information needed for signing on to a resource is provided by an application component.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is connector ?&lt;/span&gt;&lt;br /&gt;A standard extension mechanism for containers that provides connectivity to enterprise information systems. A connector is specific to an enterprise information system and consists of a resource adapter and application development tools for enterprise information system connectivity. The resource adapter is plugged in to a container through its support for system-level contracts defined in the Connector architecture.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is container-managed persistence ?&lt;/span&gt;&lt;br /&gt;The mechanism whereby data transfer between an entity bean’s variables and a resource manager is managed by the entity bean’s container.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-1854799161496267020?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/H5z6ZasRCOU" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/rFwQKb6n8P4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/1854799161496267020/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/j2ee_09.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/1854799161496267020?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/1854799161496267020" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/rFwQKb6n8P4/j2ee_09.html" title="J2EE" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/j2ee_09.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/H5z6ZasRCOU/j2ee_09.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D04DQ3k5eCp7ImA9WxJXFUg.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-2819677855032413707</id><published>2009-06-09T02:00:00.000-07:00</published><updated>2009-06-09T06:59:32.720-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T06:59:32.720-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JavaBeansTM" /><category scheme="http://www.blogger.com/atom/ns#" term="CMP" /><category scheme="http://www.blogger.com/atom/ns#" term="JavaServer PagesTM" /><category scheme="http://www.blogger.com/atom/ns#" term="jar" /><category scheme="http://www.blogger.com/atom/ns#" term="J2EE" /><category scheme="http://www.blogger.com/atom/ns#" term="Entity Bean" /><category scheme="http://www.blogger.com/atom/ns#" term="war" /><category scheme="http://www.blogger.com/atom/ns#" term="ear" /><category scheme="http://www.blogger.com/atom/ns#" term="sesion bean" /><title>J2EE</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/IEwX4q2GWuaBStaEsOTTzBVI7_o/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IEwX4q2GWuaBStaEsOTTzBVI7_o/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/IEwX4q2GWuaBStaEsOTTzBVI7_o/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IEwX4q2GWuaBStaEsOTTzBVI7_o/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/zBHTnk1Buu8uaZ-0jYXK6Hp1JPk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zBHTnk1Buu8uaZ-0jYXK6Hp1JPk/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/zBHTnk1Buu8uaZ-0jYXK6Hp1JPk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zBHTnk1Buu8uaZ-0jYXK6Hp1JPk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt;What is J2EE?&lt;/span&gt;&lt;br /&gt;J2EE is an environment for developing and deploying enterprise applications. The J2EE platform consists of a set of services, application programming interfaces (APIs), and protocols that provide the functionality for developing multitier, web-based applications.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is the J2EE module?&lt;/span&gt;&lt;br /&gt;A J2EE module consists of one or more J2EE components for the same container type and one component deployment descriptor of that type.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What are the components of J2EE application?&lt;/span&gt;&lt;br /&gt;A J2EE component is a self-contained functional software unit that is assembled into a J2EE application with its related classes and files and communicates with other components. The J2EE specification defines the following J2EE components:&lt;br /&gt;Application clients and applets are client components.&lt;br /&gt;Java Servlet and JavaServer PagesTM (JSPTM) technology components are web components.&lt;br /&gt;Enterprise JavaBeansTM (EJBTM) components (enterprise beans) are business components.&lt;br /&gt;Resource adapter components provided by EIS and tool vendors.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What are the four types of J2EE modules?&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;1. Application client module&lt;br /&gt;2. Web module&lt;br /&gt;3. Enterprise JavaBeans module&lt;br /&gt;4. Resource adapter module&lt;br /&gt;&lt;/blockquote&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What does application client module contain?&lt;/span&gt;&lt;br /&gt;The application client module contains:&lt;br /&gt;&lt;blockquote&gt;–class files,&lt;br /&gt;–an application client deployment descriptor.&lt;br /&gt;&lt;/blockquote&gt;Application client modules are packaged as JAR files with a .jar extension.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What does web module contain?&lt;/span&gt;&lt;br /&gt;The web module contains:&lt;br /&gt;&lt;blockquote&gt;–JSP files,&lt;br /&gt;–class files for servlets,&lt;br /&gt;–GIF and HTML files, and&lt;br /&gt;–a Web deployment descriptor.&lt;br /&gt;&lt;/blockquote&gt;Web modules are packaged as JAR files with a .war (Web ARchive) extension.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What are the differences between Ear, Jar and War files? Under what circumstances should we use each one?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;There are no structural differences between the files; they are all archived using zip-jar compression. However, they are intended for different purposes.&lt;br /&gt;&lt;blockquote&gt;–Jar files (files with a .jar extension) are intended to hold generic libraries of Java classes, resources, auxiliary files, etc.&lt;br /&gt;–War files (files with a .war extension) are intended to contain complete Web applications. In this context, a Web application is defined as a single group of files, classes, resources, .jar files that can be packaged and accessed as one servlet context.&lt;br /&gt;–Ear files (files with a .ear extension) are intended to contain complete enterprise applications. In this context, an enterprise application is defined as a collection of .jar files, resources, classes, and multiple Web applications.&lt;br /&gt;&lt;/blockquote&gt;Each type of file (.jar, .war, .ear) is processed uniquely by application servers, servlet containers, EJB containers, etc.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What is the difference between Session bean and Entity bean ?&lt;/span&gt;&lt;br /&gt;The Session bean and Entity bean are two main parts of EJB container.&lt;br /&gt;Session Bean&lt;br /&gt;&lt;blockquote&gt;–represents a workflow on behalf of a client&lt;br /&gt;–one-to-one logical mapping to a client.&lt;br /&gt;–created and destroyed by a client&lt;br /&gt;–not permanent objects&lt;br /&gt;–lives its EJB container(generally) does not survive system shut down&lt;br /&gt;–two types: stateless and stateful beans&lt;br /&gt;Entity Bean&lt;br /&gt;–represents persistent data and behavior of this data&lt;br /&gt;–can be shared among multiple clients&lt;br /&gt;–persists across multiple invocations&lt;br /&gt;–findable permanent objects&lt;br /&gt;–outlives its EJB container, survives system shutdown&lt;br /&gt;–two types: container managed persistence(CMP) and bean managed persistence(BMP)&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is “applet” ?&lt;/span&gt;&lt;br /&gt;A J2EE component that typically executes in a Web browser but can execute in a variety of other applications or devices that support the applet programming model.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is “applet container” ?&lt;/span&gt;&lt;br /&gt;A container that includes support for the applet programming model.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is “application assembler” ?&lt;/span&gt;&lt;br /&gt;A person who combines J2EE components and modules into deployable application units.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-2819677855032413707?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/z1s7a4LOHQM" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/KTf1RN1qbsI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/2819677855032413707/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/j2ee.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/2819677855032413707?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/2819677855032413707" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/KTf1RN1qbsI/j2ee.html" title="J2EE" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/j2ee.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/z1s7a4LOHQM/j2ee.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUICRnwyfip7ImA9WxJXFU4.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-8339106249419820781</id><published>2009-06-09T01:47:00.000-07:00</published><updated>2009-06-09T01:52:47.296-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T01:52:47.296-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="OOPS" /><title>OOPS</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/-qyPK4_0glMOD4i5y1ZlyT78riI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-qyPK4_0glMOD4i5y1ZlyT78riI/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/-qyPK4_0glMOD4i5y1ZlyT78riI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-qyPK4_0glMOD4i5y1ZlyT78riI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/2aH_saYzgHroxPfGDprI4zOlcGc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2aH_saYzgHroxPfGDprI4zOlcGc/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/2aH_saYzgHroxPfGDprI4zOlcGc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2aH_saYzgHroxPfGDprI4zOlcGc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt;1) Explain the rationale behind Object Oriented concepts?&lt;/span&gt;&lt;br /&gt;Object oriented concepts form the base of all modern programming languages. Understanding the basic concepts of object-orientation helps a developer to use various modern day programming languages, more effectively.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2) Explain about Object oriented programming?&lt;/span&gt;&lt;br /&gt;Object oriented programming is one of the most popular methodologies in software development. It offers a powerful model for creating computer programs. It speeds the program development process, improves maintenance and enhances reusability of programs.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3) Explain what is an object?&lt;br /&gt;&lt;/span&gt;An object is a combination of messages and data. Objects can receive and send messages and use messages to interact with each other. The messages contain information that is to be passed to the recipient object.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4) Explain the implementation phase with respect to OOP?&lt;/span&gt;&lt;br /&gt;The design phase is followed by OOP, which is the implementation phase. OOP provides specifications for writing programs in a programming language. During the implementation phase, programming is done as per the requirements gathered during the analysis and design phases.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5) Explain about the Design Phase?&lt;/span&gt;&lt;br /&gt;In the design phase, the developers of the system document their understanding of the system. Design generates the blue print of the system that is to be implemented. The first step in creating an object oriented design is the identification of classes and their relationships.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;6) Explain about a class?&lt;/span&gt;&lt;br /&gt;Class describes the nature of a particular thing. Structure and modularity is provided by a Class in object oriented programming environment. Characteristics of the class should be understandable by an ordinary non programmer and it should also convey the meaning of the problem statement to him. Class acts like a blue print.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;7) Explain about instance in object oriented programming?&lt;/span&gt;&lt;br /&gt;Every class and an object have an instance. Instance of a particular object is created at runtime. Values defined for a particular object define its State. Instance of an object explains the relation ship between different elements.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;8) Explain about inheritance?&lt;/span&gt;&lt;br /&gt;Inheritance revolves around the concept of inheriting knowledge and class attributes from the parent class. In general sense a sub class tries to acquire characteristics from a parent class and they can also have their own characteristics. Inheritance forms an important concept in object oriented programming.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;9) Explain about multiple inheritance?&lt;/span&gt;&lt;br /&gt;Inheritance involves inheriting characteristics from its parents also they can have their own characteristics. In multiple inheritance a class can have characteristics from multiple parents or classes. A sub class can have characteristics from multiple parents and still can have its own characteristics.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;10) Explain about encapsulation?&lt;/span&gt;&lt;br /&gt;Encapsulation passes the message without revealing the exact functional details of the class. It allows only the relevant information to the user without revealing the functional mechanism through which a particular class had functioned.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;11) Explain about abstraction?&lt;/span&gt;&lt;br /&gt;Abstraction simplifies a complex problem to a simpler problem by specifying and modeling the class to the relevant problem scenario. It simplifies the problem by giving the class its specific class of inheritance. Composition also helps in solving the problem to an extent.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;12) Explain the mechanism of composition?&lt;/span&gt;&lt;br /&gt;Composition helps to simplify a complex problem into an easier problem. It makes different classes and objects to interact with each other thus making the problem to be solved automatically. It interacts with the problem by making different classes and objects to send a message to each other.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;13) Explain about polymorphism?&lt;/span&gt;&lt;br /&gt;Polymorphism helps a sub class to behave like a parent class. When an object belonging to different data types respond to methods which have a same name, the only condition being that those methods should perform different function.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;14) Explain about overriding polymorphism?&lt;/span&gt;&lt;br /&gt;Overriding polymorphism is known to occur when a data type can perform different functions. For example an addition operator can perform different functions such as addition, float addition etc. Overriding polymorphism is generally used in complex projects where the use of a parameter is more.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;15) Explain about object oriented databases?&lt;/span&gt;&lt;br /&gt;Object oriented databases are very popular such as relational database management systems. Object oriented databases systems use specific structure through which they extract data and they combine the data for a specific output. These DBMS use object oriented languages to make the process easier.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;16) Explain about parametric polymorphism?&lt;/span&gt;&lt;br /&gt;Parametric polymorphism is supported by many object oriented languages and they are very important for object oriented techniques. In parametric polymorphism code is written without any specification for the type of data present. Hence it can be used any number of times.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;17) What are all the languages which support OOP?&lt;/span&gt;&lt;br /&gt;There are several programming languages which are implementing OOP because of its close proximity to solve real life problems. Languages such as Python, Ruby, Ruby on rails, Perl, PHP, Coldfusion, etc use OOP. Still many languages prefer to use DOM based languages due to the ease in coding.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;--------------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;1) Explain what is object oriented programming language?&lt;/span&gt;&lt;br /&gt;Object oriented programming language allows concepts such as modularity, encapsulation, polymorphism and inheritance. Simula is credited to be the first object oriented language. Objects are said to be the most important part of object oriented language. Concept revolves around making simulation programs around an object.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2) Name some languages which have object oriented language and characteristics?&lt;/span&gt;&lt;br /&gt;Some of the languages which have object oriented languages present in them are ABAP, ECMA Script, C++, Perl, LISP, C#, Tcl, VB, Ruby, Python, PHP, etc. Popularity of these languages has increased considerably as they can solve complex problems with ease.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3) Explain about UML?&lt;/span&gt;&lt;br /&gt;UML or unified modeling language is regarded to implement complete specifications and features of object oriented language. Abstract design can be implemented in object oriented programming languages. It lacks implementation of polymorphism on message arguments which is a OOPs feature.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4) Explain the meaning of object in object oriented programming?&lt;/span&gt;&lt;br /&gt;Languages which are called as object oriented almost implement everything in them as objects such as punctuations, characters, prototypes, classes, modules, blocks, etc. They were designed to facilitate and implement object oriented methods.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5) Explain about message passing in object oriented programming?&lt;/span&gt;&lt;br /&gt;Message passing is a method by which an object sends data to another object or requests other object to invoke method. This is also known as interfacing. It acts like a messenger from one object to other object to convey specific instructions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;6) State about Java and its relation to Object oriented programming?&lt;/span&gt;&lt;br /&gt;Java is widely used and its share is increasing considerably which is partly due to its close resemblance to object oriented languages such as C and C++. Code written in Java can be transported to many different platforms without changing it. It implements virtual machine.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;7) What are the problems faced by the developer using object oriented programming language?&lt;/span&gt;&lt;br /&gt;These are some of the problems faced by the developer using object oriented language they are: -&lt;br /&gt;1) Object oriented uses design patterns which can be referred to as anything in general.&lt;br /&gt;2) Repeatable solution to a problem can cause concern and disagreements and it is one of the major problems in software design.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;8) State some of the advantages of object oriented programming?&lt;/span&gt;&lt;br /&gt;Some of the advantages of object oriented programming are as follows: -&lt;br /&gt;1) A clear modular structure can be obtained which can be used as a prototype and it will not reveal the mechanism behind the design. It does have a clear interface.&lt;br /&gt;2) Ease of maintenance and modification to the existing objects can be done with ease.&lt;br /&gt;3) A good framework is provided which facilitates in creating rich GUI applications.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;9) Explain about inheritance in OOPS?&lt;/span&gt;&lt;br /&gt;Objects in one class can acquire properties of the objects in other classes by way of inheritance. Reusability which is a major factor is provided in object oriented programming which adds features to a class without modifying it. New class can be obtained from a class which is already present.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;10) Explain about the relationship between object oriented programming and databases?&lt;/span&gt;&lt;br /&gt;Object oriented programming and relational database programming are almost similar in software engineering. RDBMS will not store objects directly and that’s where object oriented programming comes into play. Object relational mapping is one such solution.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;11) Explain about a class in OOP?&lt;/span&gt;&lt;br /&gt;In Object oriented programming usage of class often occurs. A class defines the characteristics of an object and its behaviors. This defines the nature and functioning of a specified object to which it is assigned. Code for a class should be encapsulated.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;12) Explain the usage of encapsulation?&lt;/span&gt;&lt;br /&gt;Encapsulation specifies the different classes which can use the members of an object. The main goal of encapsulation is to provide an interface to clients which decrease the dependency on those features and parts which are likely to change in future. This facilitates easy changes to the code and features.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;13) Explain about abstraction?&lt;/span&gt;&lt;br /&gt;Abstraction can also be achieved through composition. It solves a complex problem by defining only those classes which are relevant to the problem and not involving the whole complex code into play.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;14) Explain what a method is?&lt;/span&gt;&lt;br /&gt;A method will affect only a particular object to which it is specified. Methods are verbs meaning they define actions which a particular object will perform. It also defines various other characteristics of a particular object.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;15) Name the different Creational patterns in OO design?&lt;/span&gt;&lt;br /&gt;There are three patterns of design out of which Creational patterns play an important role the various patterns described underneath this are: -&lt;br /&gt;1) Factory pattern&lt;br /&gt;2) Single ton pattern&lt;br /&gt;3) Prototype pattern&lt;br /&gt;4) Abstract factory pattern&lt;br /&gt;5) Builder pattern&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;16) Explain about realistic modeling?&lt;/span&gt;&lt;br /&gt;As we live in a world of objects, it logically follows that the object oriented approach models the real world accurately. The object oriented approach allows you to identify entities as objects having attributes and behavior.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;17) Explain about the analysis phase?&lt;/span&gt;&lt;br /&gt;The anlaysis or the object oriented analysis phase considers the system as a solution to a problem in its environment or domain. Developer concentrates on obtaining as much information as possible about the problem. Critical requirements needs to be identified.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-8339106249419820781?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/y4I8MvRrwh4" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/icfuspFl7d4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/8339106249419820781/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/oops.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/8339106249419820781?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/8339106249419820781" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/icfuspFl7d4/oops.html" title="OOPS" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/oops.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/y4I8MvRrwh4/oops.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkEBQ34yeyp7ImA9WxJXFU4.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-8280589053496760765</id><published>2009-06-09T01:02:00.000-07:00</published><updated>2009-06-09T01:04:12.093-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T01:04:12.093-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="EJB" /><title>EJB</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/-hamGGm05r6-Ld5kPlXW8dLJXh4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-hamGGm05r6-Ld5kPlXW8dLJXh4/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/-hamGGm05r6-Ld5kPlXW8dLJXh4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-hamGGm05r6-Ld5kPlXW8dLJXh4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/voAhGEiOYdPNj2Wgwqic1bzSAbo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/voAhGEiOYdPNj2Wgwqic1bzSAbo/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/voAhGEiOYdPNj2Wgwqic1bzSAbo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/voAhGEiOYdPNj2Wgwqic1bzSAbo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt;1) Explain about the concept of EJB?&lt;/span&gt;&lt;br /&gt;EJB is a complex subject and it requires patience to master it. This is used for Enterprise construction of applications. It is a server side component and architecture. The main role which EJB functions is, it hides the business logic of an application.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2) Name some common roles which EJB performs?&lt;/span&gt;&lt;br /&gt;Enterprise Java Beans is used chiefly for encapsulating the business logic of an application. It handles problems such as security, persistence and transactional integrity of applications. It solves these major three problems of developers thus allowing them to freely concentrate on the problem at hand.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3) Explain about POJOs which form a part of EJB?&lt;/span&gt;&lt;br /&gt;Plain old java objects are nothing but java objects. EJB3 has implemented POJOs. It gives a feel to the developers about the old objects and names used in programming. This makes a developer comfortable rather than to use fancy names for the same old application or function.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4) Explain in detail about stateless session bean?&lt;/span&gt;&lt;br /&gt;Concurrent access to a bean can be possible by using stateless session bean because they don’t have a state associated with them. This bean is less resource intensive due to lack of overhead which negates its functionality in calling a conversation with the program.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5) Explain about stateful session Beans?&lt;/span&gt;&lt;br /&gt;Stateful session beans have a state and they are distributed objects, because of them having a state they keep a track record of the calling program. This session should be carefully programmed because it may tell you about the status and presence of the customer during checkout.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;6) Explain the difference between Container managed persistence and Bean managed persistence?&lt;/span&gt;&lt;br /&gt;If the persistent state was managed by a container present in a bean then it is called as Container managed persistence. If the own state was managed by a bean then it is called as Bean managed persistence. The chief difference lies between the management of the state by the bean or by the container.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;7) Explain about Entity bean and its features?&lt;/span&gt;&lt;br /&gt;Entity Bean is a sever side component belonging to J2EE. Persistence can be managed either by Container or a Bean; these functions are present in Entity bean. Mostly it can be identified or sorted by a primary key. Remote references can survive a crash and can be trusted as a second source for storing data.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;8) Explain about message driven beans?&lt;/span&gt;&lt;br /&gt;Message driven beans are primarily used to handle asynchronous JMS messages which require integration of EJB and Java messaging services. These beans behave asynchronously. Handling of an operation which does not require instant reply or response is made easy by message driven beans.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;9) Explain about the process of execution of EJBs?&lt;/span&gt;&lt;br /&gt;EJB or Enterprise Java beans are always present in EJB container which is in turn present in an application server. Interaction of the EJB with the container and client code with container or EJB depends upon the specification. They are always included in applications in the form of javax.ejb.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;10) Explain about instance methods?&lt;/span&gt;&lt;br /&gt;Instance methods are placed in component interface and they are attached to specific instance. There nature of being Java instances makes EJB to generate classes for these instances which act as a proxy. Code from the client end is required to invoke the method present on the generated proxies which places method arguments onto a message and this message is sent to the EJB server.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;11) Explain about class methods?&lt;/span&gt;&lt;br /&gt;Home interface declares class methods. They are not used to find an existing entity and neither are they tied to a specific instance. These are not used for creating an EJB instance.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;12) Explain about factory method?&lt;/span&gt;&lt;br /&gt;It is an OOD pattern and deals with designing of the objects without specifying the class of the object which would be the final end product. A separate method is defined which will be used for creating an object and this can be easily overwritten by sub classes. This method is useful in getting the desired end product.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;13) Explain about the transactions feature present in EJB?&lt;/span&gt;&lt;br /&gt;ACID transactions and bean managed transactions should be supported by EJB container. Transactions which are container managed require declarative syntax which will be used in the deployment descriptor.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;14) Explain about deployment descriptor?&lt;/span&gt;&lt;br /&gt;As the name indicated deployment descriptor refers to a configuration file which is deployed to a container. It is primarily used for deploying a module or application. Configuration requirements are also stated in a deployment descriptor and these should be followed by a developer while deploying an application.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;15) Explain about the naming and directory services present in EJB?&lt;/span&gt;&lt;br /&gt;Home interface implementation object can be found using JNDI and this feature is available for clients using EJB. The same Home interface can be found by using CORBA name service. Creation and deletion of EJBs can be done from home interface and client code can find entity beans.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;16) Explain about J2EE application and its components?&lt;/span&gt;&lt;br /&gt;Two components are present in a J2EE application they are web and enterprise Java bean. Enterprise Java bean consists of all the logic which is very much required for a web service to run. These can be stored as .jar file and can be deployed on an application server.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;17) Explain about the method ready pool?&lt;/span&gt;&lt;br /&gt;In this stage of operation bean contains an instance in its memory. This instance of memory is present in EJB container. These instances are created at the start up and a session context is set up and ultimately this data or instance is transferred to Method ready pool stage. If it doesn’t like it transfers it to remove stage.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-8280589053496760765?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/zU-o3DEUlIs" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/Vl_-tfokxvo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/8280589053496760765/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/ejb.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/8280589053496760765?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/8280589053496760765" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/Vl_-tfokxvo/ejb.html" title="EJB" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/ejb.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/zU-o3DEUlIs/ejb.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkIEQ349fyp7ImA9WxJXFU4.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-4853526090513914664</id><published>2009-06-09T00:59:00.000-07:00</published><updated>2009-06-09T01:01:42.067-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T01:01:42.067-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JMS" /><title>JMS</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/FmOTIBjP-2o9KQzWfc0mG5jydmM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FmOTIBjP-2o9KQzWfc0mG5jydmM/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/FmOTIBjP-2o9KQzWfc0mG5jydmM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FmOTIBjP-2o9KQzWfc0mG5jydmM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/BxR-TdhMa1ZdLb6Ru0IylrzHud8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BxR-TdhMa1ZdLb6Ru0IylrzHud8/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/BxR-TdhMa1ZdLb6Ru0IylrzHud8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BxR-TdhMa1ZdLb6Ru0IylrzHud8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt;1) What is JMS ?&lt;/span&gt;&lt;br /&gt;Java messaging service specification is stated and developed by the Java Community process 914. This platform was developed to facilitate sending of messages between two or more clients. Service providers either use JMS or non-Java MO middleware.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2) What are the different elements present in JMS?&lt;/span&gt;&lt;br /&gt;The different elements present in JMS are: -&lt;br /&gt;* JMS provider, client, producer, consumer, message, topic and queue. Java client helps in processing and sending messages, this is the primary requisite for JMS to function.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3) Explain about JMS queue?&lt;/span&gt;&lt;br /&gt;This acts as a queue where messages are removed once sent to the receiver. This acts as a storage area where messages or products are sent and ready to be accepted by the user. In this queue messages are sent in an orderly fashion and order.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4) Explain about point to point?&lt;/span&gt;&lt;br /&gt;At the first point a producer posts a message to the receiver where it stays in a particular queue until the receiver opens the message from the queue. In this model predefining of the user is very important and in this form of model only one user will receive the message. During the process of the message it is not imperative for the user and sender to be online. Message opened is acknowledged.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5) What are the different places where you can use the JMS API?&lt;/span&gt;&lt;br /&gt;The different places where JMS API can be used are as follows: -&lt;br /&gt;1) Provider of the message need not depend upon the component of the user&lt;br /&gt;2) Application running should not be affected by the components&lt;br /&gt;3) Where component request of acknowledgement of message is not mandatory.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;6) What are all the features of JMS API in J2EE platform?&lt;/span&gt;&lt;br /&gt;EJB components, web components and application clients can send messages synchronously as well as receive the messages asynchronously from these applications&lt;br /&gt;Messages can participate in distributed transactions&lt;br /&gt;Asynchronous consumption of messages and implementation of concurrent processing are some of the features and benefits of using JMS in J2EE.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;7) Explain about publish model?&lt;/span&gt;&lt;br /&gt;This model of messaging is useful when the clients subscribe to a particular service of messaging. Both the client and consumer remain alien. This form of technology is fast gaining ground in commercial usage of messaging. This separates the application from the transport layer.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;8) Detail about the features of publish model?&lt;/span&gt;&lt;br /&gt;The following are the features of the publish model they are: -&lt;br /&gt;1) Multiple clients or consumers can receive the message simultaneously.&lt;br /&gt;2) Timing dependency is a factor between the client and publisher. Client will not receive messages unless the client remains active all the time. This can be eliminated when a client has durable subscription.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;9) What are the three parts of the message?&lt;/span&gt;&lt;br /&gt;A message has three parts they are&lt;br /&gt;1) A message header : - Contains operational settings&lt;br /&gt;2) Message properties: -Has settings for compatibility and selectors&lt;br /&gt;3) Optional message body: -Info or message you want to convey.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;10) Explain about session interface?&lt;/span&gt;&lt;br /&gt;Session interface is an important concept which deals partly with the queue system. It is a single thread session where messages are sent in an order. It holds the messages if transaction phase is selected and it also has facility for roll back.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;11) Explain about Connection factory interface?&lt;/span&gt;&lt;br /&gt;This has settings which creates a connection between the client and JMS provider. These settings are accessed through portable interface and need not be changed every time. These settings are configured in JNDI namespace.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;12) Explain about Connection interface?&lt;/span&gt;&lt;br /&gt;This acts as a connection link once the settings are configured between the client and the service provider. It all depends upon the connection type where sessions are configured. Connection to the JMS can be created once the settings are compatible.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;13) Explain about message listeners?&lt;/span&gt;&lt;br /&gt;It acts as an asynchronous event handler for messages. It implements the message listener interface. A developer defines the actions which should be taken when the message arrives such as deleting, forwarding, etc. A queue connection can be initiated once this connection is defined.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;14) Explain about message selector?&lt;/span&gt;&lt;br /&gt;Message selector contains an expression and it acts like a string. The syntax is based on the SQL92 conditional expression. Create receiver, create durable subscriber and create subscriber has a form which allows a person to specify message selector as an argument.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;15) Explain about map message?&lt;/span&gt;&lt;br /&gt;Map message contains name/value pairs. Names are stored as strings and values are stores as primitives in Java programming language. Names can be accessed from the database with the help of enumerator. The way the entries are stored cannot be accessed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;16) Explain about the exception handling mechanism of JMS?&lt;/span&gt;&lt;br /&gt;JMS Exception mechanism is the root class thrown by JMS API. All the exceptions generated by JMS API are handled by Catching JMS Exception. Some of the sub classes generated by the exception are as follows&lt;br /&gt;1) InvalidclientIDException&lt;br /&gt;2) JMSSecurityException etc.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;17) Explain the creation of JMS Administered objects?&lt;/span&gt;&lt;br /&gt;A topic should be created in the window in which clients were compiled. Here you can create a topic by the command j2eeadmin and name the topic as MyTopic. Argument specified at the last determines the destination. Verification of the queue should be done. j2eeadmin –listJmsDestination following command verifies whether the queue is created or not.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-4853526090513914664?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/j6oaBdh6MC8" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/BIVFFOFe4pw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/4853526090513914664/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/jms.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/4853526090513914664?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/4853526090513914664" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/BIVFFOFe4pw/jms.html" title="JMS" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/jms.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/j6oaBdh6MC8/jms.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkQER3g6fSp7ImA9WxJXFU4.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-7466619416341155744</id><published>2009-06-09T00:56:00.000-07:00</published><updated>2009-06-09T00:58:26.615-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T00:58:26.615-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JSP" /><title>JSP</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/UxxRFkK3WpmrsJPAdOLYorFN9fk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UxxRFkK3WpmrsJPAdOLYorFN9fk/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/UxxRFkK3WpmrsJPAdOLYorFN9fk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UxxRFkK3WpmrsJPAdOLYorFN9fk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/FtxS1anQC4m6w4hCrKXPV4ppgLs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FtxS1anQC4m6w4hCrKXPV4ppgLs/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/FtxS1anQC4m6w4hCrKXPV4ppgLs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FtxS1anQC4m6w4hCrKXPV4ppgLs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt;1) Explain and state about JSP?&lt;/span&gt;&lt;br /&gt;Java server pages are meant to generate dynamic content in response to the user query. This technology helps you to interact with the user very effectively. Certain Java code elements and predefined actions are embedded into the functioning of the pages which help in generating dynamic content in static pages.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2) Explain about the process of compilation with regard to JSP?&lt;/span&gt;&lt;br /&gt;A JSP complier helps to compile Java server pages into Java servlets. In turn this JSP compiler will generate a Java code which is compiled by a Java Compiler. It can generate byte code for the servlet directly. Java server pages can be modified on the fly which helps to provide a faster output without many modifications or reloads.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3) Give an outline or the steps involved in a JSP?&lt;/span&gt;&lt;br /&gt;Java server page can be broken down into following contents: -&lt;br /&gt;1) Static data&lt;br /&gt;2) Directives of JSP such as include&lt;br /&gt;3) Scripting elements and variables&lt;br /&gt;4) JSP actions&lt;br /&gt;5) Library and custom tags.&lt;br /&gt;Java server pages directive controls the functioning of servlets.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4) Explain about the include directive?&lt;/span&gt;&lt;br /&gt;This directive informs the JSP compiler about inclusion of a complete file for processing. Include directive helps in pasting or copying a full file into the compiler for processing. Files which have include directive have the extension jspf.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5) Explain about autoflush?&lt;/span&gt;&lt;br /&gt;This command is used to autoflush the contents. If a value of true is used it indicates to flush the buffer whenever it is full. In case of false it indicates that an exception should be thrown whenever the buffer is full. If you are trying to access the page at the time of conversion of a JSP into servlet will result in error.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;6) Explain the benefits of JSP?&lt;/span&gt;&lt;br /&gt;These are some of the benefits due to the usage of JSP they are&lt;br /&gt;• Portability, reusability and logic components of the language can be used across various platforms.&lt;br /&gt;• Memory and exception management.&lt;br /&gt;• Has wide range of API which increases the output functionality.&lt;br /&gt;• Low maintenance and easy deployment.&lt;br /&gt;• Robust performance on multiple requests.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;7) Explain about the reusability of JSP?&lt;/span&gt;&lt;br /&gt;Reusability is much required because it decreases the cost of development. These pages rely on reusable cross platform components. Java beans and Java beans components are used to perform complex functions with minimum ease. These components are cross platform which gives the leverage to share and use components.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;8) Explain and state the three basic Java scripting elements?&lt;/span&gt;&lt;br /&gt;The three basic Java scripting elements are declaration tag, scriptlet tag and expression tag. Declaration tag allows the developer to insert a variable definition inside the body of the servlet. Scriptleg allows contained statements and declaration allows methods.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;9) Explain about JSP actions?&lt;/span&gt;&lt;br /&gt;JSP actions are nothing but XML tags which extract the functionality of the web server. These actions are executed at run time. Some of the JSP actions are either developed by a developer or they are just built in functions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;10) Explain about JSP standard Tag library?&lt;/span&gt;&lt;br /&gt;This tag forms the component of the java web application development platform. This adds a specification to the JSP tag thus giving it much more functionality to perform various tasks such as XML data processing, loops and internationalization and conditional execution.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;11) Why model view controller paradigm should be used?&lt;/span&gt;&lt;br /&gt;Model view controller paradigm should be used to separate three different view of the coding they are presentation, computer data storage and request processing. When the request is passed the control is transferred to the JSP. There are various platforms to split the model, design and data from the page.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;12) Explain the four types of data variables which happen during the server request?&lt;/span&gt;&lt;br /&gt;The four types of data variables happening during request are page scope, request scope, application scope and session scope. These objects act according to the scope specified to them. Some objects are accessible only in the page requested.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;13) Explain about translation and execution of Java Server pages?&lt;/span&gt;&lt;br /&gt;A java server page is executed within a Java container. A Java container converts a Java file into a servlet. Conversion happens only once when the application is deployed onto the web server. During the process of compilation Java compiler checks for modifications if any modifications are present it would modify and then execute it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;14) Explain the differences between ASP and JSP?&lt;/span&gt;&lt;br /&gt;The biggest difference between both of these technologies lies with the design of the software. JSP technology is server and platform independent whereas ASP relies primarily on Microsoft technologies.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;15) Explain about the role of servlets in JSP pages?&lt;/span&gt;&lt;br /&gt;Whenever a JSP page is called it is first compiled into a servlet. Servlets help in building dynamic content in static pages. JSP is an extension of server technology. It is much easier to maintain pages with JSP technology.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;16) What is the different form in which application logic is present?&lt;/span&gt;&lt;br /&gt;Application logic is present in three different forms such as&lt;br /&gt;1) Java scriplets&lt;br /&gt;2) External functions are called by JSP tags.&lt;br /&gt;3) Tags of JSP are customized. It gives the author access to Java Beans to perform basic functionality.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;17) Explain about the java server Plugin?&lt;/span&gt;&lt;br /&gt;Plugin makes a developer to embed applets into a web page. The tag paved a way for embedding applets. Each of these param tags could have a dynamic name and value.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-7466619416341155744?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/7o8aO0iuWmc" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/96TQGhVr_TQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/7466619416341155744/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/jsp.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/7466619416341155744?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/7466619416341155744" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/96TQGhVr_TQ/jsp.html" title="JSP" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/jsp.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/7o8aO0iuWmc/jsp.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkYCQHc_fSp7ImA9WxJXFU4.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-884507747535513658</id><published>2009-06-09T00:53:00.000-07:00</published><updated>2009-06-09T00:56:01.945-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T00:56:01.945-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Core Java" /><title>Core Java</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/HpXKinGUrVjBJnoR4F1PNaKfQMk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HpXKinGUrVjBJnoR4F1PNaKfQMk/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/HpXKinGUrVjBJnoR4F1PNaKfQMk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HpXKinGUrVjBJnoR4F1PNaKfQMk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7S2CrZ36eqlE43LvkAj6_YcLSjQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7S2CrZ36eqlE43LvkAj6_YcLSjQ/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/7S2CrZ36eqlE43LvkAj6_YcLSjQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7S2CrZ36eqlE43LvkAj6_YcLSjQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt;1) Explain about Core Java ?&lt;/span&gt;&lt;br /&gt;Java is increasingly used for middleware applications to communicate between Server and clients. Java has features such as multithreading, portability and networking capabilities. Changes in the java library made java as a favorite programming language for developers it added functionality to their scripts.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2) State some advantages of Java?&lt;/span&gt;&lt;br /&gt;Platform independence is the key feature of Java during runtime. Syntax of java is similar to the popular object oriented languages such as C and C++. Java program can eliminate most of the bugs present in the program. Manual memory allocation and de allocation feature present in Java is automated.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3) State the main difference between C++ and Java?&lt;/span&gt;&lt;br /&gt;The main difference between C++ and Java lies in multiple inheritances. Java Meta class model has a better solution than C++. Persistent objects can be implemented by features such as object serialization and reflection mechanism. GUI can be implemented easily.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4) Explain about the security aspect of Java?&lt;/span&gt;&lt;br /&gt;Java has some bugs in its applets. Java team stated that they have zero tolerance over security features and subsequent editions of Java are improving Bug free environment. Some of the features are overriding the runtime stack, disallowing the corruption of memory outside its own process, reading or writing on local files where it is actually forbidden to do these processes, etc.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5) Explain about the interpreter in Java?&lt;/span&gt;&lt;br /&gt;Machines should have Java interpreter for the Java byte code to get executed. Linking is a very easy process and this feature helps while developing applications. Java compiler which is available with software development kit is a bit slower in execution of scripts.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;6) Explain about the performance aspects of Core Java?&lt;/span&gt;&lt;br /&gt;Performance of interpreted byte codes is enough but it can be improved much more than that. Byte codes are translated into machine language within no time, this speed of execution can be achieved during application compiling time. JIT compilers are also present which compile the byte codes into native code.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;7) Explain about the dynamic behavior of core java?&lt;/span&gt;&lt;br /&gt;This language was designed to adapt the changing environment and behavior. New methods and instance variables can be added to the client side without any major changes happening at the client end. This function is very important for GUI builders, pluggable components, debuggers and object database.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;8) Explain about Java SDK?&lt;/span&gt;&lt;br /&gt;Java SDK is not so comfortable with people used to command line interpreter. IDEs include compilers, editors, debugging facilities, drag and drop techniques, etc. This compiler strives to generate hundreds of lines in code UI. This platform may become a universal platform.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;9) What are the three best choices for development environment?&lt;/span&gt;&lt;br /&gt;The three best choices for development environment include.&lt;br /&gt;1) Java SDK and text editor can be a perfect choice.&lt;br /&gt;2) Java SDK and a text editor which is built within the SDK.&lt;br /&gt;3) Using IDE such as free Forte community edition.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;10) Explain about Class in Java?&lt;/span&gt;&lt;br /&gt;In Java every thing exists within a class. It defines the behavior of the class and its characteristics. Java applications and applets are built in the class. Rules present for class name are generous and some of the basic rules are names should start with a letter after that letter they can have any combination of letters and digits. It can contain names to any length.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;11) Explain about data types?&lt;/span&gt;&lt;br /&gt;Variables declared should have a declared type. Out of the eight data types four data types are integer, two are floating type integers, one is character type out of which one is Boolean and the other Unicode. Core Java is known to be a strong typed language.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;12) Explain about assignment statement?&lt;/span&gt;&lt;br /&gt;After declaring a variable, it should be initialized explicitly. Uninitialized variable can never be used. To a declared variable you must assign a variable name on the left, equal sign and a java expression should have a appropriate value to the right.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;13) Give the difference between the println method and sqrt method?&lt;/span&gt;&lt;br /&gt;Println method operates on the object system.out and has the value which should be printed namely y. sqrt method is a static method. It does not operate on any object. It has the number stored in x for which the square toot should be found out.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;14) Explain about strings in Java?&lt;/span&gt;&lt;br /&gt;Strings represent nothing but a string of characters. Java does not have any built in string type. It contains predefined class which can be called enough as a String. Instance of a string is called as a string. Much similar to many object oriented languages a + sign is used.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;15) Explain the reason behind ending a program with a System.exit (0)?&lt;/span&gt;&lt;br /&gt;The reason behind ending a program with System.exit (0) involves technicalities. When main method exits the new thread automatically does not end. The appearance of this thread is because of dialog box functionality. System.exit ends all the methods.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;16) Explain about inheritance hierarchies?&lt;/span&gt;&lt;br /&gt;An inheritance hierarchy has a collection of all classes which fall under the main class. Inheritance chain defines the path from where all the sub classes originated and their relation ship. Controller normally handles user input. Inheritance hierarchy is very important in software modeling.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;17) Explain about the select method with an example?&lt;/span&gt;&lt;br /&gt;Select part is useful in selecting text or part of the text. Arguments specified for the select command are the same as applicable to substring. First index is usually represents the start of the index. End of line makers are counted as one character. Example t.select (10,15).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-884507747535513658?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/9twi7-n1jwM" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/U4LNsowzIr8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/884507747535513658/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/core-java.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/884507747535513658?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/884507747535513658" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/U4LNsowzIr8/core-java.html" title="Core Java" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/core-java.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/9twi7-n1jwM/core-java.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkcEQ385fCp7ImA9WxJXFU4.&quot;"><id>tag:blogger.com,1999:blog-8228299313993061221.post-7838189443388247951</id><published>2009-06-09T00:51:00.000-07:00</published><updated>2009-06-09T00:53:22.124-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T00:53:22.124-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Spring" /><title>Spring</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/e0Kgacx_0vghcKmI2VPTZlglpxc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/e0Kgacx_0vghcKmI2VPTZlglpxc/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/e0Kgacx_0vghcKmI2VPTZlglpxc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/e0Kgacx_0vghcKmI2VPTZlglpxc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Cez_D12EUMT-cL5tWR39ZeNBE40/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Cez_D12EUMT-cL5tWR39ZeNBE40/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/Cez_D12EUMT-cL5tWR39ZeNBE40/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Cez_D12EUMT-cL5tWR39ZeNBE40/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-weight:bold;"&gt;1) Explain about spring applications framework?&lt;/span&gt;&lt;br /&gt;Spring architecture helps you to manage your business objects. Implementation part of the spring is easy because it helps you to introduce it in the middle of the objects. This framework is easy to implement in testing conditions. This is used by many large vendors.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2) State some benefits and advantages of spring framework?&lt;/span&gt;&lt;br /&gt;Some of the benefits which spring can offer you are as follows: -&lt;br /&gt;• It is very beneficial for middle tier applications and it can be used in various run time environments.&lt;br /&gt;• Various custom properties need not be used in applications.&lt;br /&gt;• Cost can be reduced by reducing the programming to interface cost ratio.&lt;br /&gt;• Applications built on spring framework are easy to test.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3) Explain about portability of spring?&lt;/span&gt;&lt;br /&gt;Spring applications and framework are portable between different servers. This framework and applications are portable between many different servers such as Tomcat, Jetty, Web Logic, Web Sphere, Resin, Geronimo, etc. Environment features can be implemented without affecting portability.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4) Explain about Bean factory?&lt;/span&gt;&lt;br /&gt;Spring is designed to work with Java Beans and this forms the core part of the Spring Framework. This is a generic factory and it lets users and developers to enable objects by name. This helps to manage relationships between objects.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5) Explain about the two models of the object which Bean Factory supports?&lt;/span&gt;&lt;br /&gt;Two models of object which bean factory supports are: -&lt;br /&gt;1) Single ton and prototype.&lt;br /&gt;Singleton has one instance (shared) with an object and it is assigned a specific name which can be retrieved on lookup.&lt;br /&gt;Prototype results in creation of an independent object.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;6) Explain about Bean definition Reader interface?&lt;/span&gt;&lt;br /&gt;Bean definition reader interface separates Bean factory implementations from metadata format. This is very useful if the application needs different metadata implementations. This framework or interface can be implemented in different ways.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;7) State about the commonly used Bean Factory definitions?&lt;/span&gt;&lt;br /&gt;The most commonly used bean factory definitions are as follows: -&lt;br /&gt;1) XML bean factory and 2) DefaultListable beanfactory.&lt;br /&gt;XMLbean factory is used to parse XML structure to define classes and properties of objects (named).&lt;br /&gt;DefaultListablebeanfactory is useful to program bean factories and parse definitions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;8) Explain about inversion control behavior?&lt;/span&gt;&lt;br /&gt;Inversion control behavior is obtained through bean factory concept. The best part about this container is it can be coded in a single line and has simple deployment steps. Inversion of control behavior is very useful to avoid heavy containers such as EJB.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;9) Explain about dependency injection?&lt;/span&gt;&lt;br /&gt;Dependency injection is used to remove dependence of explicit coding on container. It resembles to a form of IoC. Java methods are chiefly used to inject dependencies into an object. It is used to collaborate and configure values into an object.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;10) Explain why an organization needs to implement spring framework?&lt;/span&gt;&lt;br /&gt;Spring framework is essential because it touches important aspects such as&lt;br /&gt;1) It is very useful to manage business objects&lt;br /&gt;2) Spring architecture is very flexible it regains its architecture even when you can take some parts of it.&lt;br /&gt;3) Testing part is very efficient and east to use.&lt;br /&gt;4) Vendors recognized its importance and they are using it for enterprise Java development.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;11) Explain about how to deploy applications using POJOs?&lt;/span&gt;&lt;br /&gt;Spring helps you to develop components using POJOs. Spring Framework takes care of your need to build enterprise applications. Infrastructure of your application should be away from the business logic because it can improve the pace of your business logic changes. This is provided by Springs Framework.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;12) Explain about auto wire support?&lt;/span&gt;&lt;br /&gt;When auto wire is used as an optional attribute it reduces the volume of configuration. Auto wire should be used on the root element and this is used to activate auto wiring for all beans. If you would like to add an additional constructor it can be populates without the need to change configuration.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;13) Explain the three different methods which are provided by the Namespace Handler interface?&lt;/span&gt;&lt;br /&gt;The three different methods which are provided by the name space handler interface are: -&lt;br /&gt;1) Init() is used to allow initialization for name space handler.&lt;br /&gt;2) BeanDefinition parse is used when a Spring encounters a top level element.&lt;br /&gt;3) BeanDefinitionHandler is used when spring encounters an attribute.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;14) Explain about the different ways in which Spring JDBC can help you?&lt;/span&gt;&lt;br /&gt;There are several ways in which a spring JDBC can help you they are: -&lt;br /&gt;1) Connection leaks can be avoided.&lt;br /&gt;2) Code can be focused on necessary SQL and it is very low.&lt;br /&gt;3) Applications will never have to depend on RDBMS error specification handling.&lt;br /&gt;4) You can easily implement DAO pattern without business logic.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;15) Explain about exception wrapping?&lt;/span&gt;&lt;br /&gt;Wrapping can be effectively done using spring. It makes the proprietary code to run in the ORM layer to a set of abstracted run time exceptions. Persistence exceptions can be easily handled. Handling of exceptions can be done very easily.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;16) Explain about transaction management in spring?&lt;/span&gt;&lt;br /&gt;Spring uses its own abstract for transaction management. It uses to deliver&lt;br /&gt;1) Programmatic transaction management through SimpleJdbcTemplate.&lt;br /&gt;2) Declarative transaction management is similar to EJB. It is compatible with superset of EJB CMT with some unique features.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;17) Explain about integration of spring with AspectJ?&lt;/span&gt;&lt;br /&gt;Spring integrates comfortably with AspectJ and this aspect makes it very poular. It makes it possible to include AspectJ aspects into Spring applications. Using Spring IoC container it is possible for dependency inject AspectJ. AspectJ is also used to inject non spring managed POJO using spring. It is uses XML and annotation driven pointcuts.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='//blogger.googleusercontent.com/tracker/8228299313993061221-7838189443388247951?l=hotjavasips.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/mfnbiS8oiGo" height="1" width="1"/&gt;&lt;img src="http://feeds.feedburner.com/~r/InterviewHotJavaTips/~4/R1FRdI_BHpc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/7838189443388247951/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hotjavasips.blogspot.com/2009/06/spring.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8228299313993061221/posts/default/7838189443388247951?v=2" /><link rel="self" type="application/atom+xml" href="http://hotjavasips.blogspot.com/feeds/posts/default/7838189443388247951" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/R1FRdI_BHpc/spring.html" title="Spring" /><author><name>VIPLAV ANAND</name><uri>http://www.blogger.com/profile/16900427575633871613</uri><email>viplav15@gmail.com</email></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://hotjavasips.blogspot.com/2009/06/spring.html</feedburner:origLink><feedburner:origLink>http://feedproxy.google.com/~r/InterviewHotJavaTips/~3/mfnbiS8oiGo/spring.html</feedburner:origLink></entry></feed>

