adplus-dvertising
frame-decoration

Question

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 executed

Answer: (a).The destroy() method is called only once at the end of the life cycle of a filter

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. When destroy() method of a filter is called?

Similar Questions

Discover Related MCQs

Q. Which of the following is true about servlets?

Q. How is the dynamic interception of requests and responses to transform the information done?

Q. Which are the session tracking techniques?

i. URL rewriting

ii. Using session object

iii.Using response object

iv. Using hidden fields

v. Using cookies

vi. Using servlet object

Q. Which of the following is used for session migration?

Q. Which of the below is not a session tracking method?

Q. Which of the following is stored at client side?

Q. Which of the following leads to high network traffic?

Q. Which of the following is not true about session?

Q. SessionIDs are stored in cookies.

Q. What is the maximum size of cookie?

Q. How can we invalidate a session?

Q. Which method creates unique fields in the HTML which are not shown to the user?

Q. Which object is used by spring for authentication?

Q. Which page directive should be used in JSP to generate a PDF page?

Q. Which tag should be used to pass information from JSP to included JSP?

Q. Application is instance of which class?

Q. _jspService() method of HttpJspPage class should not be overridden.

Q. Which option is true about session scope?

Q. Default value of autoFlush attribute is?

Q. Which one is the correct order of phases in JSP life cycle?