Sudhansu Maharana wrote:
But I have scored 48% in whizlabs simulator practice test. Can you little guide me is this ok to just pass the OCJP 6 or i should prepare more before taking the actual exam. I have studied K&B book twice. (Is the Whizlabs simulator questions are harder than the real exam questions?)
A filter's doFilter() method must call doFilter() on the input FilterChain object in order to ensure that all filters have a chance to execute.
I think its correct.
The only way a filter can be invoked is through a declaration in the DD.
It is true. When client made request, the container decides which filter will call first and which is second and third etc. According to this mapping the FilterChain's doFilter() method call's the next filter.