SAGE University, Indore
IAC -Core,
Program Name: B. Tech (CST)
Semester: III
Course Name (Code): Advance Java (ACTDCAJV001T)
Max Marks: 10
Assignment No.: 1
Q.1Define Java Enterprise Edition (Java EE). Explain its significance in enterprise
application development.
Q.2 Describe the main components of the Java EE architecture with the help of a neat
diagram.
Q.3 Differentiate between Java SE and Java EE with suitable examples.
Q.4 What is a Java EE Application Server? Explain its role in deploying and running
enterprise applications.
Q.5 List and explain any four key services provided by Java EE for building scalable
applications.
SAGE University, Indore
IAC -Core,
Program Name: B. Tech (CST)
Semester: III
Course Name (Code): Advance Java (ACTDCAJV001T)
Max Marks: 10
Assignment No.: 2
Q1 . Explain the role of a Servlet in a Java web application. What are the key advantages of
using servlets over traditional CGI scripts? Illustrate your answer with real-world examples
where servlets are commonly used.
Q2. Describe the different phases of the servlet lifecycle. Draw a lifecycle diagram and
explain what happens during initialization, servicing, and destruction. Which servlet
methods are called at each phase?
Q3. Write a short servlet code snippet that handles an HTTP GET request, retrieves a query
parameter from the request, and sends a customized HTML response. Explain the use of
HttpServletRequest and HttpServletResponse objects in this context.
Q4 Differentiate between ServletConfig and ServletContext in servlet programming. How
can each be used to pass initialization parameters or share information between servlets?
Provide code examples to demonstrate their usage.
Q5. Discuss different approaches for session management in servlets. Explain with examples
how cookies, URL rewriting, and HttpSession are used to maintain state in a Java web
application. What are the pros and cons of each method?