Course Title: Advanced Java
Course Code: PCC-CSE-306-G
Semester: B.Tech. 6th Semester (CSE)
May 2024 Examination
- Write notes on the following: [6 X 2.5 = 15]
(a) Directive Elements of JSP.
(b) Servlet container.
(c) Interceptors in Struts.
(d) Uses of mail API.
(e) Criteria query language.
(f) Android Widgets.
Section-A
-
What is Servlet? Explain the Servlet Life Cycle for Generic Servlet and Http Servlet. [15]
-
What is JSP, how it is different from servlet? Explain all the implicit objects of JSP. [15]
Section-B
-
Explain MVC model. Also Explain Struts 2 architecture in detail. [15]
-
What is the role of Java mail API? Write the various steps involved in sending and receiving email. [15]
Section-C
-
(a) Describe Transaction Management Process in Hibernate. [7.5]
(b) Explain inheritance mapping concept in Hibernate. [7.5] -
(a) What is MVC tag library in spring? [7.5]
(b) Elaborate Dependency injection method in spring. [7.5]
Section-D
-
Explain Android and its various versions. Write the various building blocks of Android. [15]
-
Explain the various design patterns in detail. [15]
Examination, May—2023
Short Answer Questions
- (6 x 2.5 = 15)
(a) Define CRUD.
(b) What is WAR File?
(c) Define Hibernate Lazy Collection.
(d) Differentiate between Constructor and Setter Injection. (e) What are the advantages of JSP over Servlets?
(f) Describe Android R.java file.
UNIT - I
-
(a) Describe life cycle of Servlet. (7)
(b) Explain how request dispatcher works in servlets? (8) -
Explain MVC in JSP. (15)
UNIT - II
-
Explain in detail core components of Struts. (15)
-
Write a program displaying steps to delete an email using Java Mail API. (15)
UNIT - III
-
(a) Explain Hibernate HQL. (5)
(b) Explain Hibernate HCQL. (5)
(c) Explain Hibernate Logging with Log4j. (5) -
Elaborate Spring MVC Tiles with the help of program. (15)
UNIT - IV
-
Explain Android Widgets in details. (15)
-
Write short note on any three of these: (3 x 5 = 15)
(a) Creational Pattern
(b) Behavioral Pattern
(c) Structural Pattern
(d) J2EE Pattern
(e) Presentation Layer
Examination, July—2022
Q.1. Explain the following: (6 x 2.5 = 15)
(a) HTTP servlets
(b) MVC in JSP
(c) Single thread model
(d) CRUD operations
(e) Spring framework
(f) J2EE design patterns
UNIT - I
Q.2. Explain architecture of servlets in detail. [15]
Q.3. Explain JSP technology in detail. Also write its tags and objects. [15]
UNIT - II
Q.4. What are Struts? Explain Struts architecture in detail. [15]
Q.5. Write the method of sending and receiving mail using Java Mail API. [15]
UNIT - III
Q.6. What is Hibernate? Write its architecture in detail. [15]
Q.7. Explain dependency injection method in Spring. [15]
UNIT - IV
Q.8. Explain building blocks of Android. [15]
Q.9. Explain structural and behavioral Java design patterns. [15]
Examination, July—2021
Short Answer Questions
- Explain the following: (6 x 2.5 = 15)
- (a) Generic Servelets
- (b) MVC in JSP
- (c) Spring AOP
- (d) Single thread model
- (e) UI tags
- (f) J2EE design pattern
UNIT - I
- What is Servelet? Explain the life cycle of Servelet. [15]
- What is JSP Technology? How does it work? Also explain JSP Objects? [15]
UNIT - II
- Explain the features of struts and struts 2 architecture in detail. [15]
- What is Java mail API? Write the methods used for sending and receiving mail using JAVA Mail API. [15]
UNIT - III
- Explain the architecture of Hibernate in detail. [15]
- What is Spring? Explain dependency injection methods. [15]
UNIT - IV
- Explain building blocks and architecture of Android. [15]
- Explain structural and behavioural Java design patterns. [15]