Given:
What will be the response to a HEAD request?
A. The findAll() method will be called and the employee list will be returned.
B. The findAll() method will be called and no employees will be returned.
C. No method will be invoked and no error will be returned.
D. No method will be invoked and a 404 error will be returned.
Correct answer is B
according to chapter 29.2.4.1 in Java EE7 tutorial https://docs.oracle.com/javaee/7/tutorial/jaxrs002.htm#GILIK -> chapter 29.2.4.1
“For HEAD, the runtime will invoke the
implemented GET method, if present, and ignore the response entity, if set.”