Skip to content
Sharp

Spring Core · interview question

Which Spring Boot annotation is used to indicate that a method parameter should be bound to a web request parameter?

Multiple choiceEasychapter-9-curatedpremiumspring-corecontrollers-services-repositories
Choose one answer
Answer and explanation

Correct answer

D. @RequestParam

Why

@RequestParam is used to bind a method parameter to a web request parameter. It is commonly used for accessing query string parameters in web requests.

Test yourself on Spring Core

A free test with instant, explained results. No account needed.

Start free test
All Spring Core questions →