Nội dung text 3160707 - AJP 2024W.pdf
1 Enrolment No./Seat No_______________ GUJARAT TECHNOLOGICAL UNIVERSITY BE- SEMESTER–VI (NEW) EXAMINATION – WINTER 2024 Subject Code:3160707 Date:05-12-2024 Subject Name: Advanced Java Programming Time:02:30 PM TO 05:00 PM Total Marks:70 Instructions: 1. Attempt all questions. 2. Make suitable assumptions wherever necessary. 3. Figures to the right indicate full marks. 4. Simple and non-programmable scientific calculators are allowed. Q.1 (a) 1) What is the purpose of the URL class in Java? 2) List out the important methods of HttpServletResponse. 3) What are the JSP action tags? 03 (b) 1) What are the advantages of Hibernate over JDBC? 2) What are the three types of text field’s tags provided by JSF? 04 (c) What is JDBC driver? Explain its role and compare various JDBC drivers. 07 Q.2 (a) What are the differences between a TCP socket and UDP socket? How are they created in Java? 03 (b) Demonstrate the use of ServletConfig and ServletContext. 04 (c) How do you handle multiple clients concurrently in socket programming? Explain with example. 07 OR (c) What is Session? Compare different session management techniques. 07 Q.3 (a) What is the use of PreparedStatement? How will you use it? 03 (b) What is filter? How will you configure filter using deployment descriptor? 04 (c) What is Java Bean? Demonstrate the use of JSP bean in web application. 07 OR Q.3 (a) What is the use of CallableStatement? How will you use it? 03 (b) What is FilterConfig? How will you use it? 04 (c) What is JSTL? Explain the core tags of the SQL tag library. 07 Q.4 (a) What are the benefits of using JSF Framework? 03 (b) How will you use validator tags in JSF? 04 (c) What are the cookies? Demonstrate the use of cookies in servlet for session management. 07 OR Q.4 (a) Explain the use of RequestDispatcher in servlet. 03 (b) Write a code snippet to show the use of JSF action event. 04 (c) Explain JSP inbuilt objects with their use in application. 07 Q.5 (a) What is the advantage of using Spring Framework? 03 (b) What do you understand by Dependency Injection? How do we implement it using Spring Framework? 04 (c) What are the different Hibernate interfaces? Explain their role in brief. 07 OR Q.5 (a) What is Hibernate SessionFactory and how to configure it? 03 (b) Show the use of some important annotations for Hibernate mapping. 04 (c) Explain the flow of Spring Web MVC. 07 *************