1.

When destroy() method of a filter is called?(a) The destroy() method is called only once at the end of the life cycle of a filter(b) The destroy() method is called after the filter has executed doFilter method(c) The destroy() method is called only once at the begining of the life cycle of a filter(d) The destroyer() method is called after the filter has executedThe question was asked in final exam.This intriguing question originated from Servlet topic in portion Java Server Technologies & Servlet of Java

Answer»

Right choice is (a) The destroy() METHOD is CALLED only once at the end of the LIFE CYCLE of a filter

Easiest explanation: destroy() is an end of life cycle method so it is called at the end of life cycle.



Discussion

No Comment Found

Related InterviewSolutions