AJP TEST-I Questions
AJP TEST-I Questions
AJP TEST-I Questions
15. Which packages represent interfaces and classes for servlet API?
A) javax.servlet
B) javax.servlet.http
C) Both A & B
D) None of the above
16. The web container maintains the life cycle of a servlet instance,give
the lifecycle of a servlet?
A) Servlet class is loaded
B) Servlet instance is created
C) init,Service,destroy method is invoked
D) All mentioned above
17. The sendredirect() method of httpservletresponse interface can be
used to redirect response to another resource, it may be servlet, jsp or
html file?
A) True
B) False
22. Which cookie it is valid for single session only; it is removed each
time when user closes the browser?
A) Persistent cookie
B) Non-persistent cookie
C) Both A & B
D) None of the above
A) session identifier
B) creation time
C) last accessed time
D) All mentioned above
24. Which methods are used to bind the objects on httpsession instance
and get the objects?
A) setattribute
B) getattribute
C) Both A & B
D) None of the above
25. Which class provides stream to read binary data such as image etc.
From the request object?
A) servltinputstream
B) servletoutputstream
C) Both A & B
D) None of the above