Direction: Choose the correct option
Q1.
Can Spring MVC have multiple controllers?
Direction: Choose the correct option
Q2.
How do you define multiple controllers in Spring MVC?
Direction: Choose the correct option
Q3.
What is the purpose of @RequestMapping at class level?
Direction: Choose the correct option
Q4.
Given @RequestMapping('/user') on class and @RequestMapping('/profile') on method, what URL will handle?
Direction: Choose the correct option
Q5.
How do you organize controllers for different resources?
Direction: Choose the correct option
Q6.
Can two controllers have the same request mapping path?
Direction: Choose the correct option
Q7.
What annotation can be used to specialize a controller for REST APIs?
Direction: Choose the correct option
Q8.
How do you inject dependencies into controllers?
Direction: Choose the correct option
Q9.
What is the scope of a Spring MVC controller by default?
Direction: Choose the correct option
Q10.
How can you have state in a controller safely?
