Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

what is filters and its use?

Answers were Sorted based on User's Feedback

what is filters and its use?..

Answer / guru

filters r java classes which is intercept the client request
before it access a resource in server,then it intercept
server response before its reach clint

request filter

for security

response filter

compresed data

init(),do filter(),destroy are methods of filter

Is This Answer Correct ?    3 Yes 0 No

what is filters and its use?..

Answer / puneet

The ans cudhave been more precise: let me try :)
The filters are basically used when we need to change the
response sent back to the client like implementing
restrictions to few of the resources dependent on the user
who logs in like we dnt need to show few pages to few users
from a website then we need to make that logic in a new
class which implements filter interface and need to write
down the logic in the dofilter method which takes the
response and request objects which can be altered and
changed and the object of this class can be called dependent
on the condition of met on which we want to implement the

We can also use this interface to change the behavior of the

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Core Java Interview Questions

Write a program to print fibonacci series up to count 10.

0 Answers  

what is java bean?where can we use it?

12 Answers   TCS,

what is webservices?

1 Answers   CTS, Ericsson, HCL,

What is the meaning of nullable?

0 Answers  

What are the topics in core java?

0 Answers  

Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example

0 Answers  

How to sort an unsorted array in java?

0 Answers  

What is the difference between DataInputStream and BufferedReader

2 Answers   Hexagon,

Can we use this () and super () in a method?

0 Answers  

What is the use of beaninfo?

0 Answers  

State the difference between strings and arrays.

0 Answers   Syntel, Visa,

Explain the difference between string, stringbuffer and stringbuilder in java?

0 Answers