You are on page 1of 5

================================ ADVANCE JAVA QUESTION BANK

========================================

ONE MARK QUESTION (ALL UNITS) :-

Q.1 Do as Directed.
1. getParameterValues() is a method of _________(class/interface).
2. The _________ character is used to start an EL.
3. doGet() method has _______ parameters.
4. <%@include file=......... > and <jsp:include page=””> are the
same(True/False)
5. What is the use of tag?
6. All filters must implement ____________interface.
7. Java is__________ and JavaScript is__________________ . -- WINTER-2021

Q.2 Explain following terms.


1. Generic Servlet
2. FilterChain
3. Scriptlets
4. Deployment Discriptor File
5. Status code
6. Factory Methods
7. JSPExpression --WINTER-2021

Q.3 Explain the following methods of HttpServletResponse with examples.


1) setContentType()
2) setStatus()
3) sendError()
4) sendRedirect()
5) setContentLength()
6) encodeURL()
7) isCommited() --WINTER-2020

Q.4 Answer the following.


I. What is the difference between getHeaderNames and getHeaders method of
Http-ServletRequest?
II. What are the major differences between doGet( ) and doPost( )?
III. What types of comments are available in the JSP? --WINTER-2020

Q.5 Explain following terms.


i) POJO
ii) ${expr}
iii) Dependency Injection
iv) Deployment Descriptor File
v) <%@ include file = ... >
vi) IOC
vii)Socket --SUMMER-2022

Q.6 Explain following terms.(any seven)


1) Java URL
2) Generic Servlet
3) FilterChain
4) Scriptlets
5) Page Context Object
6) Deployment Descriptor
7) Wiring bean with Java
8) Status code --SUMMER-2021
===================================================================================
==========================

UNIT - 1 :-

Q.1 What is Java Networking? Explain Java Socket API with example.--WINTER-2021

Q.2 What is InetAddress class? Explain factory method of InetAddress class with
suitable example.--SUMMER-2022

Q.3 Write a client-server program using UDP socket. Client sends a string and
server checks whether that
string is palindrome or not and responds with appropriate message.--SUMMER-2022

Q.4 What is Java Networking? Explain Java Socket API with example.--SUMMER-2021

===================================================================================
==========================

UNIT - 2 :-

Q.1 What is Servlet? Explain the servlet life cycle in detail with Example.--
WINTER-2021

Q.2 1. What are the major differences between doGet( ) and doPost( )?
2. Difference between GenericServlet and HttpServlet.
3. What is the difference between getHeaderNames and getHeaders method. --
WINTER-2021

Q.3 What is Cookie? Differentiate session cookie with persistent cookies.--WINTER-


2021

Q.4 Discuss any seven common Status codes. And how to send status code?--WINTER-
2021

Q.5 What is Session? Explain different ways of session tracking mechanism. --


WINTER-2021

Q.6 (a) Explain the Servlet Life Cycle and Write a Servlet program which generates
a plain text.--WINTER-2020

Q.7 Briefly discuss the following HTTP 1.1 request headers i) Accept ii)
Accept#Charset iii) Host
iv) Accept-Language v) Authorization vi) Cookie vii) User#Agent --WINTER-2020

Q.8 What is Cookie? Differentiate session cookie with persistent cookies.--WINTER-


2020

Q.9 What is Session? Explain different ways of session tracking mechanism--WINTER-


2020

Q.10 Discuss status codes. Explain any 5 status codes with example.--SUMMER-2022

Q.11 Define the servlet with its type. Explain servlet life cycle with example.--
SUMMER-2022
Q.12 What is a Cookie? Explain method to add, retrieve and delete cookie using
suitable example.--SUMMER-2022

Q.13 What is the use of Session Tracking in the web? Explain methods available ssin
HttpSession class with example.--SUMMER-2022

Q.14 What is Servlet? Explain the servlet life cycle in detail.--SUMMER-2021

Q.15 What is Session Tracking? List out the different techniques used to track the
session. Explain with
suitable example --SUMMER-2021

Q.16 Explain ServletContext and ServletConfig with example.--SUMMER-2021

Q.17 Define Cookies. How will you handle cookie in servlet? Explain with suitable
example.--SUMMER-2021

===================================================================================
==========================

UNIT - 3 :-

Q.1 Define Servlet Filter with proper example. How filter use for pre and post
processing of request? --WINTER-2021

Q.2 What is the functionality of Listeners? Explain any five listeners in detail.
--WINTER-2021

Q.3 Define Servlet Filter with proper example. How filter use for pre and post
processing of request?--WINTER-2020

Q.4 What is the job of the HttpSessionListener and HttpSessionAttributeListener


interfaces? Explain steps
to implement HttpSessionAttributeListener interface with suitable example.--
SUMMER-2022

Q.5 What is Filter in Servlet? Explain with suitable example. Write steps to
implement Filter with appropriate xml file.--SUMMER-2022

Q.6 What is ServletContextListener? Explain the process of initialization of


Commonly used data by ServletContextListener interface.--SUMMER-2022

Q.7 What is the HttpServletRequest? Discuss all access methods of


HttpServletRequest in detail. --SUMMER-2021

===================================================================================
==========================

UNIT - 4 :-

Q.1 Write a JSP Program to display the list of marks obtained in assignment of
Advance Java Of 5th Semester students. --WINTER-2021

Q.2 1) Explain the advantages of JSP over Servlet.


2) Explain page directive with attributes. --WINTER-2021

Q.3 Explain the steps for implementing MVC with RequestDispatcher.--WINTER-2021


Q.4 What is Scoped Variable? How to EL access Scoped Variable--WINTER-2021

Q.5 Explain JSTL Tags with example (1) c:out (2) c:forEach (3) c:forTokens (4) c:if
(5) c:choose --WINTER-2021

Q.6 Write a code to create a student bean to store the information like
enrollment_no, stud_name and stud_course.
Also write the code to retrieve the information using JSP. --WINTER-2021

Q.7 (b) What is the use of JSP directive? Explain the page directive with
attributes. --WINTER-2020

Q.8 (a) Explain the mechanism of accessing Bean Properties and accessing
Collections using JSP Expression Language with example.--WINTER-2020

Q.9 (b) Explain the advantages of JSP over Servlet. --WINTER-2020

Q.10 Explain the steps for implementing MVC with RequestDispatcher.--WINTER-2020

Q.11 What is sharing beans? Explain any one with example.--WINTER-2020

Q.12 Explain the Expression Language Operators in details--WINTER-2020

Q.13 In which case Prepared statement is useful? Write the outline code that shows
how to use PreparedStatement
if price of all recordings need to be changed in the music table. Assume
suitable data.--WINTER-2020

Q.14 What is MVC? Explain with a suitable example. Briefly explain the role of
Request Dispatcher in MVC.--SUMMER-2022

Q.15 What is the importance of JavaBeans in JSP? Explain important JSP actions to
build and manipulate
JavaBean component along with all its attributes.--SUMMER-2022

Q.16 Write a code to develop a JSP Page to display the personal information and
result information of the
student in two different tabular formats.--SUMMER-2022

Q.17 What is the purpose of ‘.tld’ file? Write a code for creating custom tags to
display current date and time with attributes.--SUMMER-2022

Q.18 What is JSTL? Explain any five core tags with suitable example.--SUMMER-2022

Q.19 What do you understand by JSP Actions? What is the difference between
<jsp:forward page=……>and
response.sendRedirect(url).--SUMMER-2021

Q.20 Give the name of JSP Directive. What is the difference between include
directive and <jsp: include> action.--SUMMER-2021

Q.21 Explain JSTL Tags with example (1) c:out (2) c:forEach (3) c:forTokens (4)
c:if (5) c:choose. --SUMMER-2021

Q.22 Explain Tag Library Components. Explain each of them in brief to create the
custom JSP tags--SUMMER-2021

Q.23 What is Scoped Variable? How to EL access Scoped Variable. --SUMMER-2021


Q.24 What is difference between declarative security and programmatic security?
Describe the steps involved in form-based security.--SUMMER-2021

Q.25 Write steps for MVC architecture - Also justify how MVC is better compare to
regular Servlet-JSP implementation --SUMMER-2021

===================================================================================
==========================

UNIT - 5 :-

Q.1 Explain spring framework--WINTER-2021

Q.2 ‘Spring has made enterprise Java development easier.’ Justify this statement.
--WINTER-2020

Q.3 Write a short note on Spring Framework Architecture.--SUMMER-2022

Q.4 Discuss Spring Beans Life Cycle with example and diagram. --SUMMER-2022

Q.5 What is the JavaBeans? Explain JavaBean component along with all its
attributes--SUMMER-2021

Q.6 Explain spring framework.--SUMMER-2021

Q.7 Explain the wiring bean with XML. --SUMMER-2021


===================================================================================
==========================

UNIT - 6 :-

Q.1 Explain the process for querying databases using JDBC Driver.--WINTER-2020
===================================================================================
==========================

You might also like