0% found this document useful (0 votes)
2 views2 pages

Advanced JAVA - Question Bank - Module4 and 1

The document is a question bank for an Advanced Java course, covering topics such as Map classes (HashMap and TreeMap), legacy classes of Java's collection framework, JSP concepts including session objects, cookies, and control statements, as well as servlets and their lifecycle. It includes programming tasks and examples to illustrate the concepts. The questions are organized into modules, focusing on practical applications and differences between technologies.

Uploaded by

Abhi BM
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Advanced JAVA - Question Bank - Module4 and 1

The document is a question bank for an Advanced Java course, covering topics such as Map classes (HashMap and TreeMap), legacy classes of Java's collection framework, JSP concepts including session objects, cookies, and control statements, as well as servlets and their lifecycle. It includes programming tasks and examples to illustrate the concepts. The questions are organized into modules, focusing on practical applications and differences between technologies.

Uploaded by

Abhi BM
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

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.

You might also like