S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation is used to define a RESTful path variable?

  • (A) @PathParam
  • (B) @Var
  • (C) @PathVariable
  • (D) @Param
  • Correct Answer - Option(C)
  • Views: 12
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@PathVariable is used to bind a URI template variable to a method parameter.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.