Explore topic-wise MCQs in Spring.

This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your Spring knowledge and support exam preparation. Choose a topic below to get started.

1.

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

A. @XmlRootElement
B. @XmlRoot
C. @NotNull
D. None of the mentioned
Answer» B. @XmlRoot
2.

Publishing an application s data as a REST service requires.

A. @RequestMapping
B. @PathVariable
C. All of the mentioned
D. None of the mentioned
Answer» D. None of the mentioned