Search your topic in Java2share
Servlets & JSP
In How many ways we can develop a servlet?
What is the difference between CGI & Servlet?
What is the difference between traditional & Fast CGI?
What is the difference between ServletConfig & ServletContext?
How to define a Servlet?
Specify parallel technologies to the servlet?
What is the difference between web server & web container?
What is the difference between web server & application server?
What are the various types of web containers?
By using which 2 Packages we can implement Servlet?
What is the purpose of RequestDispatcher?
What methods we can call on RequesrDispatcher Object?
Explain about SingleThreadModeal?
Explain about SingleThreadModeal?
What are the various methods present in SingleThreadModeal?
What is the marker interface? Example?
By using which interfaces we can implements Filter concept?
What are the various listeners are available in Servlet specification?
What are the various Event classes present in Servlet Specification?
By using which object we can send text data as response from the Servlet?
By using which object we can read binary data send by the client?
By using which object we can send binary data send as response from the Servlet?
What are the (various ) lifecycle methods of the Servlet?
Explain the purpose of the init() method & How many times it will be excuted? When it will be executed?
If init() method throws any Exception i.e; if init() method fails to execute then what will be happen?
Is it possible to write constructor with in the Servlet?
Why init() is required to perform initialization activities instead of constructor?
Is it possible to perform Initialization activities with in the constructor?
What is the purpose of service() & How Many times it will be Executed?
Explain about destroy?
Is it Possible to call destroy() method explicitly from service?
With in the <servlet-mapping> how many url pattrerns taken at a time?
Explain LifeCycle of the Servlet?
What is the purpose of <load-on-startup>?
What is the significance of the number for <load-on-startup>?
If two servlets having same <load-on-startup>value then which wii be loaded first?
Explain about GenericServlet?
Which interfaces are implemented by GenericServlet?
What is the necessity of having 2 init() methods with in the Servlet?
Explain best way of overriding init()?
What are various possible status code of response?
Explain the difference between GET&POST?
What are various HttpRequest methods?
What is the difference between HEAD&GET?
What is the difference between PUT&GPOST?
Which Http methods are non-idempotent?
Which Http methods are idempotent?
In how many ways we can trigger a GET request?
What is the default method for the form?
What are different ways to trigger POST request?
How many service() methods available in HttpServlet?
Explain life cycle of getRequest?
Is it recommended to override service() in Http based Servlet?
If you are sending Get request but our Servlet contains doGet() & service()
Methods then which method will be executed?
If you are sending Get request but our Servlet doesn't contain doGet() what happen?
Even though HttpServlet doesn't contain any abstract method why it is declared as abstract class?
What are the various methods to retrieve from parameters?
What is the purpose of request Headers?
How we can retrieve headers associated with the ServletRequest?
To what value is a variable of the String type
How we can retrieve cookies from the request?
By using which method we can get client &server information from the request?
How we can add response headers to the ServletResponse?
How we can set ContentType to the response?
What is the MIME type?
Is it possible to send multiple content type as response from the same servlet?
Write Servlet code to send movie file as response?
Is it possible to get PrintWriter & ServletOutputStream objects simultaneously?
How we can implement Redirection mechanism?
Explain, difference between sendRedirect&forword?
How many times we can call sendRedirect() method with in the same Servlet?
How we can add cookies to the response?
Explain the directory structure of a web application?
In which location we have to place static content?
Is it possible to access resources present in the context root directly?
Is WEB-INF folder mandatory for web application?
Explain about web.xml?
Where we have to place 3rd party jar files?
If the required class file available in classes folder and lib folder jar file, then which one will get preference?
Is there any alternate location to place servlet .class file Other than classes folder?
Is it possible to access web.xml directory?
Where we have to place tag libraries inside web application?
Is it important the order of tags in the web.xml?
Can you specify any 10 tags of web.xml?
With in the <web-app> which tags are mandatory?
What is the purpose of <servlet-name>
How many names are possible for a servlet in web-app?
Is it possible to configure jsp's in web.xml?
When we have to configure jsp's in web.xml?
What is the purpose of Servlet initialization parameters and explain how to configure in web.xml?
With in the servlet how we can access logical name of the servlet?
With in the servlet how we can access Servlet initialization parameter?
What is the ServletConfig object and explain the methods available in ServletConfig interface?
What is the purpose of <load-on-startup>explain its advantages & disadvantages?
If two Servlets having same<load-on-startup> values what will be happen?
How many types of url patterns are possible according to Servlet specification?
With in the <servlet-mapping>how many url pattrern tags we can take?
How to configure defult Servlet in web.xml and when it will get chance for execution?
What is the difference between url, uri & urn?
How we can get Contextpath and quereyString directly with in the Servlet?
What is the necessity of welcome-file and explain How to configure welcome files in web.xml?
What is the default welcome-file?
Is it possible to configure welcome file in folder wise?
What is the necessity of error page and explain the process of Configuration in web.xml?
How to send ErrorCode programmatically?
What is the purpose of <mime-mapping>?
Explain about of war file & the process of creation?
What is the purpose of META-INF folder?
Explain about MANIFEST.MF?
Explain about <context-param>tag & <init-param>?
What are the differences between Servlet initialization parameters& Context initialization parameters?
How we can access context parameters and servlet parameters with in the Servlet?
How we can declare context & Servlet <init-parameters>in web.xml?
What is the scope of <context-param>&<init-param>?
What are the difference between parameters & attributes?
What is the purpose of an attribute?
What are various scopes available for Servlets?
Explain the cases where we should go for each scope?
explain the methods to perform following activities?
a) Adding an attribute?
b) Get the name of an attribute?
c) Remove an attribute?
d) Modify the value of an attribute?
e) To display all attribute names present in a specified scope?
If we store information in application scope by default it is available everywhere with in the web application, then what is the need of session and Request scopes?
What is the purpose of RequestDispatcher?
How many possible ways we can get the RequestDispatcher?
What is the difference between obtaining RequestDispatcher from ServletRequest and ServletContext object?
What is the difference between forward() &include()?
What is the difference between forward() &sendRedirect()?
What is the foreign RequestDispatcher & explain the process how we can get it?
What are various attributes added by web container while forwarding & including?
What is the purpose of these attributes?
What is the purpose of filter? Explain the cases where exactly required?
By using which interfaces we can implement filter concepts?
What is the purpose of FilterChain?
How we can configure filter in web.xml?
In how many ways we can map a filter?
What is the purpose of <dispatcher> tag?
What are the default values of <dispatcher> tag?
What are allowed values of <dispatcher> tag?
In filter chain in which order the filters will be executed?
What is the difference between Filter interface doFilter() & FilterChain doFilter()?
What is the intercepting filter design pattern?
What is the purpose of wrapper?
Explain the types of wrappers?
Explain Decorator design pattern?
Explain the cases where you used filters & wrappers in your previous project?
What is the need of Session Management? Explain cases where
Session Management is required with example?
What are the various Session Management techniques are available?
Explain the process of creating Session object?
What is the difference between getSession() & getSession(boolean b)?
Explain with an example where getSession(false) is required?
How we can invalidate a Session?
Define Session management?
How we can configure SessionTimeout in web.xml?
What is the difference between <Session-timeout>and <SetMaxInactiveInterval>?
How to know SessionCreation time & lastaccesed time?
Explain the Session Management Mechanism by SessionAPI?
What is the default session timeout?
Explain Session Management by using Cookies?
How the SessionId is exchanging between Client & Server?
What is the difference between Session API & Cookie which approach is recommended?
What is the difference between persistent and non persistent cookies?
What is URL Rewriting?
By using which Methods we can implement URLRewriting?
BY using which methods we can identify under laying Session Management technique?
Explain advantages & disadvantages of
Explain the purpose of Listener?
What are the various listeners are available according to Servlet specification?
What is the difference between ServletRequestListener and ServletRequestAttributeListener?
How to configure listener in web.xml?
To print hit count of the web application which listener is required to use?
To print the no of active session objects at server side which listener is responsible?
What is the difference between HSAL & HSBL?
Q169.What are various methods present in binding listeners?
Explain about HttpSessionActivationListener?
At the time of application deployment to perform certain activities which listener is responsible?
What are various listeners which are not required to configure in web.xml?
What are various event classes available in ServletSpecification?
Is it possible to configure more than one listener of same type?
If you are configures more than one listener of the same type then in which order listener will be executed?
Who is responsible to perform instantiation of listener?
At what time listener classes will be instantiated?
What is the difference between declarative Security & programmatic security?
By using which methods we can implement programmatic Security?
What is the purpose of <security-role-ref>?
How we can configure users in Tomcat?
In your previous project how you implement security?
In your previous project what type of authentication used?