Skip to content
Sharp

Spring Core · interview question

In a Spring Boot application, which layer should handle the conversion of HTTP requests to business operations?

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

Correct answer

D. @RestController

Why

@RestController is designed to handle HTTP requests and responses, converting them into business operations. It acts as a bridge between the client and the service layer.

Test yourself on Spring Core

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

Start free test
All Spring Core questions →