Home Interviewquestions JSF Basic Interview Questions
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

JSF Basic Interview Questions

Advertisement
JSF is a component based user interface used for building web applications. JSF is used in making web apps so it needs to have sufficient knowledge of core java and its components. If you going for any interview particularly in JSF technology, it is expected that you must have the basic knowledge of other web technologies too.

JSF Basic Interview Questions

JavaServer Faces (JSF) is a component-based user interfaces designed for building web applications. JSF is a part of Java Platform, Enterprise Edition (J2EE). So if you have the knowledge of JSF, you must have the knowledge of other web technologies like HTML, CSS, AJAX etc.

So, if you going for an interview regarding Java and JSF specialization you must have strong basic knowledge of corejava and related web technologies. For your convenient, we have listed some basic and most common questions, frequently asked in the interview. Having adequate knowledge in JSF Basic Interview questions will improve the chances of your success. So have a look on it.

Ques: What is JSF?

Ans: JSF is new standard framework, developed through Java Community Process (JCP), that makes it easy to build user interfaces for java web applications by assembling reusable components in a page. You can think of JSF framework as a toolbox that is full of ready to use components where you can quickly and easily add and reuse these components many times in a page and capture events generated by actions on these components. For more click http://www.roseindia.net/jsf/whatisjsf.shtml

Ques: What is required to get started with JSF?

Ans: For beginning JSF, there is a need of Java SE Developer Kit (JDK), JSF 1.2 version or JSF 2.0. Standard Application Server like Tomcat. To compile the code, there is a need of an Integrated Development Environment (IDE) such as Netbeans 5.5, Eclipse 3.2.x and others.

Ques: What is the JSF architecture?

Ans: JSF was developed integrating MVC design pattern so that applications can be designed well with greater maintainability. To understand this fact we need to understand what is MVC design pattern, how MVC helps to design an application well and how can we make our web application easy to maintain. For more click: http://www.roseindia.net/jsf/jsfandmvc.shtml

Ques: How is JSF different from the conventional JSP / Servlet Model?

Ans: JSF is highly sophisticated language than older JSP servlets. In the comparison of JSF, there is a need to both JSP and servlets to complete the task while JSF works alone.

Ques: What are the advantages of JSF?

Ans: JSF is a handy technology and user can easily create user interface using JSF because it has in-built UI component library. Here are some advantages of JSF:

  • UI components are stored on the server.
  • Easy use of third party components.
  • Event driven programming model.
  • Events generated by user are handled on the server.
  • Navigation handling.
  • Can automatically synchronize UI components .
  • JSF supports multiple client devices.
  • JSF has extensible architecture.
  • International language support.
  • Extensive tool support (Sun, Oracle , IBM etc.).
  • Rapid application development approach.

Ques: What are the available implementations of JavaServer Faces?

Ans: There are three implementations available for JSF: Sun Microsystems' Reference Implementation (RI), Apache's MyFaces, and Oracle's ADF Faces.

Ques: What does a typical JSF application consists of?

Ans: JSF application comprises JavaBeans components, event driven component and MVC.

Ques: What are the JSF life-cycle phases?

Ans: There are six phases of JSF life-cycle

  1. Restore view
  2. Apply request values; process events
  3. Process validations; process events
  4. Update model values; process events
  5. Invoke application; process events
  6. Render response

Ques: Explain briefly the life-cycle phases of JSF?

Ans: Life cycle of a JSF web application starts when user makes a request. On submission of a page various further tasks are performed like validation of data provided in components in the view, data conversion according to types specified on server side. For details view: http://www.roseindia.net/jsf/jsflifecycle.shtml

Ques: What Is a JavaServer Faces Application?

Ans: JavaServer Faces applications are just like any other Java web application. For more: http://www.roseindia.net/freemagazine/issue8/jsf-application.shtml

Ques: What is Managed Bean?

Ans: Managed bean also known as Mbean is a type of JavaBean, particularly used in the Java Management Extensions technology. A managed bean describes how a bean is created and managed.

Ques: What is Backing Bean?

Ans: Backing beans are JavaBeans components related with User Interface components used in a page. It separates UI component objects from objects that perform application-specific processing and containing data.

Ques: What are the differences between a Backing Bean and Managed Bean?

Ans: Backing Beans are just a collection, a subtype of JSF Managed Beans that contains specific purpose while Managed Beans are a type of JavaBean, particularly used in the Java Management Extensions technology.

Ques: What is view object?

Ans: A view object is a model object that describes how does an application look alike and how can it be updated.

Ques: What is domain object model?

Ans: A Domain object model is a conceptual model with a business logic to a particular model. It contains various entities, attributes, roles and resolving the problems.

Ques: What is the difference between the domain object model and a view object?

Ans: Domain Object Model is used in sorting out and specific problem through business logic while view object is used to where you need any type of specific presentation of data.

Ques: What do you mean by Bean Scope?

Ans: Bean Scope is like container that stores beans and other required objects of a web applications and releases at the time of availability.

Ques: What are the different kinds of Bean Scopes in JSF?

Ans: JSF supports three Bean Scopes. viz.,

  • Request Scope
  • Session Scope
  • Application Scope
Advertisements

Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: October 4, 2013

Ask Questions?    Discuss: JSF Basic Interview Questions  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com