Advanced JAVA
Question Bank
MODULE-1
1. Explain the following Map class with suitable program i) HashMap ii) TreeMap
2. Explain any four legacy classes of Java’s collection framework with suitable
program. MODULE-4
1. Explain the concept of session objects in JSP. Write a JSP program to create, read
and destroy session object
2. Define JSP? Explain different types of JSP tags by giving suitable programming
examples.
3. List out the differences between JSP and servlets. Also explain different JSP tags
with example.
4. Explain sessions and cookies in JSP.
5. How arrays are defined in JSP.
6. What are cookies? How cookies are handled in JSP? Write a JSP program to create
and read a cookie.
7. Explain the different types of variables, objects, and methods used in JSP. How are they
used in a JSP page? Provide suitable examples.
8. What are control statements and loops in JSP? Explain the different types with syntax and
examples. How are they used to control the flow of execution in a JSP page?
9. What is servlet? Explain the life cycle of servlets
10. Write a Java servlet program that demonstrate how parameters can be accessed from
HTML
11. What is a session objects? Write a program to create and read session objects using JSP
12. Define Cookie write a servlet program to add a cookie
13. Write a servlet program to accept parameters from HTML (username and
password) and display.
14. Explain the role of Tomcat server in servlets
15. Explain the difference between servlets and CGI programs
16. Describe the core interfaces that are provided in Javax.Servlet.http package.