Unit 1
1. What is a Java Enterprise Application? Explain the architecture of a Java Enterprise
Application.
2. Write a note on Multi-Tier Architecture.
3. Write a short note on CGI. Explain alternatives to CGI.
4. Explain the life cycle of a servlet.
5. What are the steps to create a Web Application using NetBeans? Write a short note on
JDBC Driver. Explain its types.
6. Explain 2-tier System Architecture, its advantages and disadvantages.
7. What are different technologies provided by Java EE platform?
8. Explain the life cycle of a Servlet with a diagram.
9. What is JDBC? Explain the architecture of JDBC in detail.
10. Write short notes on JDBC Drivers.
11. Write a program to accept details of a person and store those details using a servlet in
a database.
12. List and explain each of the four JDBC driver types.
13. What is an enterprise application? What is the enterprise edition of Java? Define Java
EE containers with various Java container types.
14. Explain the life cycle of a servlet application.
15. Write a short note on javax.servlet.Servlet package.
16. What is a JDBC Statement object? Explain its 3 types.
17. What is Java Enterprise Edition (Java EE)? Explain.
18. List and explain the tasks that a Servlet can do.
19. Write a servlet code to display the square and square root of numbers between 25 and
365 in tabular form.
20. Write a note on Multi-Tier EE application architecture.
21. What are the challenges of Enterprise Applications?
22. List and explain Java Container types.
23. Write a short note on Part and WebConnection interfaces.
24. Explain Deployment descriptor file with its elements.
25. Explain RowSet and its types in JDBC.
26. Classify the EE Containers. Explain each type.
27. Explain the architecture of JDBC.
28. Explain the importance of the RequestDispatcher Interface. Provide an example to
explain the methods of the interface.
29. Explain how Java handles session management through HttpSession.
Unit 2
1. What is a cookie? Explain the need for the creation of cookies.
2. Explain the methods of the Cookie class that facilitate the creation, manipulation, and
deletion of cookies.
3. What is Non-Blocking I/O? Explain WriteListener and ReadListener working in Non-
Blocking I/O.
4. Explain the file uploading feature in Servlets.
5. Explain setting, sending, and reading of Cookies in Java Servlet.
6. What is session tracking? What are the ways to track the session?
7. Write a short note on creation and invalidation of sessions.
8. Which points are important while uploading a file?
9. List and explain four types of JDBC drivers.
10. Write a servlet program to create a session and display the following:
o Session ID
o New or Old
o Creation Time
11. Write a servlet program GradeServlet.java that accepts Grade through radio buttons
from index.html. If the grade is "A", "B", "C", or "D", dispatch to Success.html with
message "Congratulations!!! You Passed SEM V exam", else display "Try Again" and
reload index.html in current servlet. (Only servlet code)
12. Explain the following with respect to working with files in Servlet:
o @MultipartConfigure
o fileSizeThreshold
o location
o maxFileSize
o maxRequestSize
13. Explain using code snippet the onDataAvailable() and onAllDataRead() methods of
ReadListener interface.
14. What is RequestDispatcher? Explain the two methods of RequestDispatcher.
15. Which things need to be carefully checked and understood while writing file code in
servlet?
16. Where are cookies used? Describe any four important methods of the Cookie class.
17. What is a session? Explain Session Management Rules.
18. Write a servlet code to download a file.
19. What is Cookies? Explain setting, sending, and reading of Cookie in Servlet.
20. What is session? Explain lifecycle of Http Session.
21. Write a short note on session management using servlet.
22. Distinguish between Servlet and JSP.
23. Explain different types of JSP tags.
24. Write a program for implementing a ReadListener.
25. What is the Request Dispatcher interface? Explain its methods. How to create cookies
using Servlet?
26. Write a short note on Uploading files with Java Servlet.
27. Explain Non-Blocking I/O. How does it work?
Unit 3
1. What are directives in JSP? Explain the page directive in detail (with all its attributes).
2. What is EL (Expression Language)? Explain immediate EL, deferred EL, LValue, and
RValue in detail.
3. Explain the advantages of JSTL over JSP.
4. Explain the JSTL core Tag Library.
5. Explain the implicit objects in JSP.
6. How JSP functions and executes?
7. What are the types of Expression available in EL (Expression Language)?
8. Write a short note on Restriction, Projection, and Partitioning Operators in EL.
9. Explain Conditional or Flow Control Statements in XML Tag Library with examples.
10. Write a short note on Enterprise Beans.
11. Explain the reasons to use JSP.
12. Develop a simple JSP application to accept values from HTML page and display on
next page. (Name-txt, Age-txt, Hobbies-checkbox, Email-txt, Gender-radio button)
13. Explain the jsp:useBean tag with its attributes. Support your answer with a suitable
code snippet.
14. List the names of JSP implicit objects. Explain any two in detail.
15. What is wrong in using JSP scriptlet tag? How does JSTL fix JSP scriptlet
shortcomings?
16. What is the use of Java Server Pages? Give the difference between JSP and Servlets.
17. Explain Life Cycle of a JSP Page.
18. What are directives in JSP? Explain its types.
19. Give an explanation of the jsp:useBean action tag's attributes and usage.
20. Write a short note on jsp:plugin action.
21. What exactly is JSTL? Describe XPath in detail.
22. Explain lifecycle of JSP with diagram.
23. Explain different core tags in JSTL.
24. List and explain any 4 JSP Implicit objects with their methods.
25. Explain different scopes of JSP objects.
26. Explain the life cycle of a JSP page.
27. What is Session Tracking? Explain its methods.
28. Explain the page directive with its attributes.
29. How to Forward and Pass parameters to another action in JSP?
30. Explain the methods of request implicit objects in JSP.
31. Write a short note on operators of EL.
Unit 4
1. Explain the enterprise bean container.
2. What are the different types of enterprise beans? Explain each.
3. Explain the working of a message-driven bean.
4. Explain the concept of naming service. Add suitable illustrations.
5. Explain basic lookup in JNDI and also explain resource injection in JNDI.
6. How to query and update data in JSTL and Enterprise Bean?
7. Describe the Packaging of Enterprise Beans in JAR and WAR modules.
8. How to access No-Interface View and Local Business Interface?
9. Write a short note on the Lifecycle of a Message-Driven Bean with the onMessage()
method.
10. How to define an Interceptor? What is the role of the AroundInvoke Method?
11. What is DataSource Resource Definition in Java EE?
12. What is EJB? Explain its advantages.
13. Write a detailed note on the types of Session beans.
14. Write a short note on Remote and Local Interfaces.
15. Describe message-driven beans characteristics.
16. What is a naming service?
17. Write a note on DataSource Resource Definition in Java EE 7.
18. Explain Enterprise Bean Containers in brief.
19. What is EJB? Explain its architecture.
20. Write a note on different types of session beans.
21. Explain the life cycle of a message-driven Bean using a suitable diagram.
22. Explain the concept of naming service and Directory Interface. Explain basic lookup
in JNDI.
23. What is an interceptor? How is an interceptor defined, and how is aroundInvoke()
added to it?
24. What are the different types of beans? Explain.
25. Explain the lifecycle of stateful session beans.
26. Explain the Benefits of Enterprise Java Beans.
27. Explain the lifecycle of message-driven beans.
28. Explain naming and directory service with an example.
Unit 5
1. Explain Java Persistence API (JPA) with its specification.
2. What is the Impedance Mismatch? How can it be solved?
3. What is the relationship between JPA, ORM, Database, and the application?
4. Write a short note on Functions in JPQL and Downcasting in JPQL.
5. Explain the structure of hibernate.cfg.xml. How does Hibernate work?
6. Explain JPA Architecture with the help of a neat diagram.
7. What is Persistence? Explain.
8. Where does Java Persistence API fit in? Why is there a need for Object-Relational
Mapping (ORM)?
9. Explain Java Persistence API (JPA) with its specification. How does JPA work?
10. Write a short note on JOIN condition using ON.
11. Write a short note on Entity Listeners using CDI.
1. Explain the architecture of Hibernate with a suitable diagram.
2. What is Hibernate? Explain Object-Relational Mapping (ORM).
3. Explain the components of Hibernate configuration.
4. Explain Hibernate with advantages.
5. Explain the persistent standards available in Java.
1. Explain the benefits of EJB.
2. Write a note on different types of session beans.