Subject Code: 2160707
GUJARAT TECHNOLOGICAL UNIVERSITY
--- Content provided by FirstRanker.com ---
BE- SEMESTER-VI (NEW) EXAMINATION - WINTER 2020
Subject Name: Advanced Java
Time: 02:00 PM TO 04:00 PM
Instructions:
1. Attempt any FOUR questions out of EIGHT questions.
--- Content provided by FirstRanker.com ---
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
Q.1
- (a) What is Hibernate? What is the main advantage of using Hibernate than using SQL? (03 Marks)
- (b) Compare Directive Include and Standard Action Include in JSP. (04 Marks)
- (c) Write a client-server program using TCP. The client sends a list of N numbers to the server, and the server responds with the sum of N numbers with appropriate output. (07 Marks)
--- Content provided by FirstRanker.com ---
Q.2
- (a) What is a DatabaseMetaData? List out methods and explain any two with appropriate code. (03 Marks)
- (b) Explain UseBean action tag in JSP with appropriate code. (04 Marks)
- (c) Write a program to insert student records to the database using a callable statement with appropriate output. (07 Marks)
--- Content provided by FirstRanker.com ---
Q.3
- (a) Differentiate between GenericServlet and HttpServlet. (03 Marks)
- (b) What is a deployment descriptor file? Explain it with code for managing the different errors or exceptions. (04 Marks)
- (c) What is Request Dispatcher? What is the difference between Request dispatcher’s forward() and include() method? Explain it in detail with a program. (07 Marks)
Q.4
--- Content provided by FirstRanker.com ---
- (a) What is Filter? List the applications of filter. (03 Marks)
- (b) Explain Servlet Life Cycle with example and demonstrate every state in detail. (04 Marks)
- (c) What is session? List the different ways to manage the session and explain any one way with appropriate code. (07 Marks)
Q.5
- (a) What is the use of the page directive tag? List out all attributes and explain any two in detail. (03 Marks)
- (b) List out all Implicit objects in JSP and explain any three in detail. (04 Marks)
- (c) What is the use of the directive taglib in JSP? Write down a program for creating your own tag by using taglib in JSP with appropriate output. (07 Marks)
--- Content provided by FirstRanker.com ---
Q.6
- (a) What is POJO? Explain Hibernate architecture in detail. (03 Marks)
- (b) What is ORM? Explain object/relational mappings in Hibernate. (04 Marks)
- (c) What is a JSTL? List out all libraries and explain any one with appropriate code in detail. (07 Marks)
--- Content provided by FirstRanker.com ---
Date: 22/01/2021
Total Marks: 56
Q.7
--- Content provided by FirstRanker.com ---
- (a) List the JSF facelets tags and explain any one in detail. (03 Marks)
- (b) List the JSF validation tags and explain any three in detail. (04 Marks)
- (c) Explain JSF application life cycle phases in detail with a neat sketch. (07 Marks)
Q.8
- (a) What is dependency injection? Explain in detail. (03 Marks)
- (b) What is MVC architecture? Explain Spring architecture with a neat sketch. (04 Marks)
- (c) Explain the architecture of Spring Framework with all its containers in detail. (07 Marks)
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
This download link is referred from the post: GTU B.Tech 2020 Winter Question Papers || Gujarat Technological University