Multiple choice technology programming languages

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

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

JSF Validators are classes that implement the javax.faces.validator.Validator interface and validate the given input. The Validator interface defines a validate method that must be implemented. Note that it's an interface (implement), not an abstract class (extend), and the package is validator, not validate.