Category : Interview Questions

JSF Interview Questions 5

JSF Interview Questions Explain the meaning of components in JSF and what are the different types? Components in JSF are objects that manage interaction with a user. Components help developers to create UIs by assembling a number of components , …

Read more »

Hibernate Interview Questions-5

Hibernate Interview Questions In Hibernate, the most common used object is ‘Session’, can you explain what a session is? Is there a way by which you can share a session object between different threads? Session is nothing but a light …

Read more »

Struts Interview Questions 5

When you look from a designer’s perspective how will you view Struts in the MVC framework? When we view struts from a desinger perspective, it mainly plays th role of a controller in Model/View/Controller(MVC) . The View is played by …

Read more »

Struts Interview Questions 4

What is the difference between bean:write and bean:message ? In Jakarta Struts – you may be knowing that – both are custom tags defined in HTML Tag library. Both are used for accessing Java beans. Bean:Message – is to access …

Read more »

Struts Interview Questions 3

Explain the need for Struts? Java technologies give developers a serious boost when creating and maintaining applications to meet the demands of today’s public Web sites and enterprise intranets. Struts combines Java Servlets, Java ServerPages, custom tags, and message resources …

Read more »

Struts Interview Questions 2

Explain the way by which the exceptions are handled in Struts application? There are two ways of handling exception in Struts: Programmatically handling: using try {} catch block in code where exception can come and flow of code is also …

Read more »

JSF Interview Questions 4

Explain the different types of JSF events? JSF is an event driven framework. Action Events: bound to UI Command objects like a Command Button or a Hyper-link. Whenever a user presses a Command Button or clicks a hyperlink these Events …

Read more »

XML Interview Questions -5

By what mechanism does XML handle white-space in the documents? All white-space, including linebreaks, TAB characters, and normal spaces, even between ’structural’ elements where no text can ever appear, is passed by the parser unchanged to the application (browser, formatter, …

Read more »

XML Interview Questions -4

Give some  examples of types of applications that can benefit from using XML. Infact there are lot of applications that use XML, the point of this question to see what all the practical usages teh candidate is used to and …

Read more »

XML Interview Questions -3

What is the difference between DOM and SAX? What would you use if an option is given? DOM parses an XML document and returns an instance of org.w3c.dom.Document. This document object’s tree must then be “walked” in order to process …

Read more »

XML Interview Questions -2

Why is XML introduction considered to be a great achievement ? XML has the capability to remove the constraints which were pulling back Web developments: 1. Dependency on a single, inflexible document type (HTML) which was being much abused for …

Read more »

Servlet Interview Questions-5

Explain the difference in using request.getRequestDispatcher() and context.getRequestDispatcher()? In request.getRequestDispatcher(path) in order to create it we need to give the relative path of the resource. But in resourcecontext.getRequestDispatcher(path) in order to create it we need to give the absolute path of …

Read more »

Servlet Interview Questions-4

Servlet Interview Questions Explain the mechanishm by which we can generate PDF’S dynamically in servlets? This can be achieved using iText. A open source library for java. You can refer sourceforge site for sample servlet examples. Explain the difference between …

Read more »

JSF Interview Questions 3

JSF Interview Questions Explain the way be which we can declare the Message Bundle in JSF? Usually this can be done in two ways: (Let’s assume com.j2eebrainJsf.messages is the properties file) The easiest way is to include the following elements …

Read more »

JSF Interview Questions 2

JSF Interview Questions How to reload the page after ValueChangeListener is invoked? At the end of the ValueChangeListener, call FacesContext.getCurrentInstance().renderResponse() How to download PDF file with JSF ? This is an code example how it can be done with action …

Read more »

Java Interview Questions 7

Java Interview Questions What are the rules for casting primitive types ? You can cast any non Boolean type to any other non boolean type You cannot cast a boolean to any other type; you cannot cast any other type …

Read more »

JSP Interview Questions-6

JSP Interview Questions How can I declare methods within my JSP page ? 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 …

Read more »

JSP Interview Questions-5

JSP Interview Questions Is there a way we can manage to prevent the output of the JSP or Servlet pages from being cached by the browser? If so how can this be achieved? Yes. This can be achieved. We need …

Read more »

JSP Interview Questions-4

JSP Interview Questions Explain the different scope values in JSP? The scope values in JSP can be mainly attributed to the below listed: page request session application Who do normally developers/industry tend towards having JSP as the preferred technology model …

Read more »

JSP Interview Questions-3

JSP Interview Questions How can we play around with the JSP and SSI #include? If you are planning to include only bare HTML, it’s better to use the #include directive as usual inside the ‘.jsp’ file. e.g.: <!–#include file=”data.inc”–> But …

Read more »

Sitemap   Follow j2eetutorial on Twitter    

Δ Top