Home / CSE MCQs / Spring MCQs :: Discussion

Discussion :: Spring MCQs

  1. Validator field is not assigned to any bean, but rather a factory class of the type.
  2. A.
    javax.validation.Validator
    B.
    javax.validation.ValidatorFactory
    C.
    javax.validation.ValidatorFactor
    D.
    none of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    This is how JSR-303 validation works. The assignment process is done inside the controller's constructor.


Be The First To Comment