Java
T
point
Home
Python
Java
JavaScript
HTML
SQL
PHP
C#
C++
DS
Aptitude
Reasoning
Selenium
DBMS
C
Android
Interview Q
Content Menu ▼
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Question 1
:
You want to create a filter for your web application and your filter will implement
javax.servlet.Filter. Which two statements are true?
1.
Your filter class must implement an init method and a destroy method.
2.
Your filter class must also implement javax.servlet.FilterChain.
3.
When your filter chains to the next filter, it should pass the same arguments it
received in its doFilter method.
4.
Your filter class must implement a doFilter method that takes, among other
things, an HTTPServletRequest object and an HTTPServletResponse object.