Answer Posted / 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
restrictions.
We can also use this interface to change the behavior of the
response.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is the difference between abstract classes and interfaces?
How is a structure different from array ?
What is immutable data?
Can we use a switch statement with strings?
Explain all java features with real time examples
How do you add an element to an arraylist in java?
Does google use java?
Difference between arraylist and vector.
What is another word for methodology?
Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.
Which data type is class in java?
What are autoboxing and unboxing? When does it occur?
What is a dot notation?
What is the use of volatile in java?
What is the private method modifier?