HFSJ 1st edtion: Page 696 Question 1. a. Which are true for filters. Answers: B) The destroy method is always container callback. D) The only way to invoke filter is through a declaration in DD. Answer B.D One more option. C) The doFilter method is always a container call back method.
My questions a) What is a container callback method? Does this mean it can be invoked only by the container and cant be invoked via code. If that is the case then B is wrong.
And since the answer B is correct acc to HSFS why is option C incorrect? One more question regarding option C. The doFilter method of which interface Filter or FilterChain?