0% found this document useful (0 votes)
4 views1 page

Advanced Java Programming Assignment 4

The document outlines various concepts related to Java GUI programming, including the necessity of top-level containers like JFrame, the functionalities of JTextField and JTextArea, and the handling of cookies in Servlets. It also discusses JSP scripting elements, event listeners, key events, session management with HttpSession, and the differences between Servlets and JSPs. Additionally, it covers serialization in Swing, LayoutManagers, the Swing MVC design pattern, and provides short notes on Java web frameworks, adapter classes, servlet lifecycle, mouse events, and session tracking.

Uploaded by

Shiva Acharya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Advanced Java Programming Assignment 4

The document outlines various concepts related to Java GUI programming, including the necessity of top-level containers like JFrame, the functionalities of JTextField and JTextArea, and the handling of cookies in Servlets. It also discusses JSP scripting elements, event listeners, key events, session management with HttpSession, and the differences between Servlets and JSPs. Additionally, it covers serialization in Swing, LayoutManagers, the Swing MVC design pattern, and provides short notes on Java web frameworks, adapter classes, servlet lifecycle, mouse events, and session tracking.

Uploaded by

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

1. Why do we need top level container like JFrame to write Java programs with GUI?

How can we display two dimensional objects in Java?

2. Explain JTextField and JTextArea components of Java swing library.

3. How do you set and get Cookie in Servlet? Explain using suitable Java program.

4. Explain different scripting elements of JSP with example.

5. What is the role of Event Listener in event handling? List different event
listener provided by Java.

6. What is keyEvent? Explain with proper example.

7. What are the key methods provided in HttpSession interface for handling session?
Explain.

8. Differentiate between servlet and JSP.

9. What is the purpose of Serialization in Swing?

10. What is a LayoutManager and explain the different types of LayoutManager with
an example.

11. Explain about the Swing MVC design pattern with an example?

12. Explain Top-level containers, Intermediate containers and Atomic components of


Java Swing library.

13. Write short notes on:


a) Java web frameworks
b) Adapter classes
c) Life cycle of a servlet
b) MouseEvent and MouseListener
c) Session tracking

You might also like