[amp_mcq option1=”@pathvariable” option2=”@path” option3=”@pathlocale” option4=”none of the mentioned” correct=”option1″]
The correct answer is: A. @pathvariable
The @pathvariable annotation is used to specify a variable that will be bound to the path of the request. This variable can then be used in the handler method to access the request data.
The @path annotation is used to specify the path of the request. This information is used by the framework to route the request to the appropriate handler method.
The @pathlocale annotation is used to specify the locale of the request. This information is used by the framework to internationalize the response.
The @pathvariable annotation is the only option that specifies a variable that will be bound to the path of the request. The other options specify information that is used by the framework to route the request or internationalize the response.