Java Server Faces (JSF) Programming

Test your knowledge of JavaServer Faces framework, Java programming concepts including interfaces, visibility modifiers, and operators

10 Questions Published

Questions

Question 1 Multiple Choice (Multiple Answers)

The & and | operators always evaluate

  1. Evalauate on the first operand
  2. Evaluate on both operands
  3. Does nt evaluate the right operand if the left operand is true
  4. to true if both operands are true
Question 2 Multiple Choice (Multiple Answers)

Code visibility revolves around whether code in one class can

  1. Create an instance of another class
  2. Extend( or subclass), another class
  3. Access methods and variables of another class
  4. All of the above
Question 3 Multiple Choice (Multiple Answers)

Interface constants are implicity of which type?

  1. public
  2. static
  3. final
  4. All of the above
  5. 1 & 3
  6. 2 & 3
Question 4 Multiple Choice (Single Answer)

In order to implement a custom UI component in JSF, what does the renderer class extend from?

  1. javax.faces.renderer.Renderer
  2. javax.faces.render.Renderer
  3. javax.faces.render.Render
  4. javax.faces.renderer.Render
Question 5 Multiple Choice (Single Answer)

In order to implement a custom UI component in JSF, what does the renderer class extend from?

  1. javax.faces.renderer.Renderer
  2. javax.faces.render.Renderer
  3. javax.faces.render.Render
  4. javax.faces.renderer.Render
Question 6 Multiple Choice (Single Answer)

One of the following is an existing implemented framework of JSF. Which one is that?

  1. MyFaces
  2. IceFaces
  3. ADF Faces
  4. Option 1 and 3
  5. Option 2 and 3
Question 7 Multiple Choice (Single Answer)

Which is the latest JSF version?

  1. 1.0
  2. 1.1
  3. 1.2
  4. 1.3
Question 8 Multiple Choice (Single Answer)

The following are true about JSF

  1. server side technology
  2. component oriented and event driven framework for GUI development
  3. follows MVC design pattern
  4. all of the above
Question 9 Multiple Choice (Single Answer)

An entry should be made in which file to register a JSF tag component class for writing a custom UI component

  1. web.xml
  2. *.tld
  3. faces-config.xml
  4. applicationcontext.xml
Question 10 Multiple Choice (Single Answer)

What are JSF Validators?

  1. The class that extends javax.faces.validator.Validator and validates the given input
  2. The class that implements javax.faces.validator.Validator and validates the given input
  3. The class that extends javax.faces.validate.Validator and validates the given input
  4. The class that implements javax.faces.validate.Validator and validates the given input