adplus-dvertising
frame-decoration

Question

Annotation used to indicate a field has to have a minimum of 2 characters.

a.

@NotNull

b.

@Size

c.

@MaxSize

d.

@size

Posted under Java Spring Framework

Answer: (b).@Size

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Annotation used to indicate a field has to have a minimum of 2 characters.

Similar Questions

Discover Related MCQs

Q. Annotation which receives a value in the form regexp=”.+@.+\\.[a-z]+”.

Q. A field named validator is of type.

Q. Validator field is not assigned to any bean, but rather a factory class of the type.

Q. To hold any errors detected from validating the instance of beans.

Q. To use JSR-303 bean validation in a web application, dependencies to be added in maven.

Q. Spring doesn’t cope up with pdf and excel views.

Q. Spring MVC supports generating Excel files using which of the following libraries.

Q. The view classes for Excel view is/are:-

Q. Spring MVC supports generating PDF files using which of the following libraries.

Q. To publish a REST service with Spring.

Q. Publishing an application’s data as a REST service requires.

Q. Spring supports a series of mechanisms to generate a REST service payload.

Q. Annotation added as an input parameter to the handler method.

Q. Notation for defining REST endpoints.

Q. General-purpose class that allows a response to be rendered using a marshaller.

Q. Marshalling is the process of transforming an in-memory representation of an object into a data format.

Q. The marshaller used by MarshallingView belongs to one of a series of XML marshallers.

Q. To configure Jaxb2Marshaller marshaller we require.

Q. In the case of classesToBeBound, the classes assigned to this property, indicate the class (i.e., object) structure that is to be transformed into XML.

Q. Annotation which allows the Jaxb2Marshaller marshaller to detect a class’s (i.e., object’s) fields.