ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
what is filters and its use?
 Question Submitted By :: Gopalraop
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is filters and its use?
Answer
# 1
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 ?    1 Yes 0 No
Guru
 
  Re: what is filters and its use?
Answer
# 2
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 1 No
Puneet
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Can we place the any object to key attribute of HashMap<key,value>? HCL3
What is I/O Filter? TCS1
What is meant by event handling in SAX parser? Ness-Technologies1
how to pass the parameters to applets?  1
What is a class ?  8
What are the allowed, non-Unicode letter characters that can be used as the first character of an identifier?  2
how to handle http request in struts Polaris2
what is difference between requestprocessor and request dispatcher? Tech-Mahindra1
What is the difference between java and .Net? Bosch5
Difference between Interface & Abstract class?  3
why Runnable interface is preferable than extending the Thread class? Wipro5
I have an HashMap object, which has with key and value pair. It has 10 keys and values in that object. Now the question is I want insert new key and value in middle or any where in that list but not at the end or at the top. Is it possible or not. If yes how can we achieve this one? Huawei1
Q) I have a ArrayList object, in that object i have added 5 integer values, 5 float values, 5 string values. Now question is how can delete particular type of data ( i.e all int values or all float values or string values) in that list object at a time? Aricent2
class A{ class B{ } } in which name u save the file,its the program compile? HCL6
How the elements are organized in GridLayout?  1
Can you call a constructor within a constructor?  6
What is difference between hash mapping and hash table? NDS3
what are the diffrences between interface and abstract class?  4
What is unicode?  1
What is meant by controls and types?  1
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com