Given the class:
Choose the option that describes what would happen if this class were deployed (Choose one):
A.
Any HTTP GET or POST request with the URL “/resource” would result in a call to getName().
B.
Any HTTP GET or POST request with URLs that begin with “/resource” would result in a call to getName().
C.
A runtime error would result, since a method cannot be responsible for both GET and POST requests.
D.
A compile error would result, since a method cannot be responsible for both GET and POST requests.
A is false. @Get and @post cannot be in the same methode. the give you a compile error.
@Mez.
No both can come together.
If it give compilation error with you , it seems vendor implementation issue.
But JAX-RS allow this.
C
A is correct
como es posible que A sea correcta? mr Mohamed