AJP Question Paper
AJP Question Paper
___________
Q.1 (a) What do you mean by MVC architecture? Explain its role in modern 03
applications with its advantages.
(b) What is Servlet? Explain the life cycle methods of it. 04
(c) Explain the use of PreparedStatement with appropriate example. 07
Q.3 (a) What is a session? List out various session management techniques. 03
(b) Explain the purpose of RequestDispatcher using the methods forward () and 04
include ().
(c) What are cookies? Demonstrate the use of cookies in servlet. 07
OR
Q.3 (a) Which action tags are used to access the JavaBeans from a JSP page? 03
(b) What is Expression Language EL in JSP explain with suitable example 04
program?
(c) What is session? Demonstrate the use of Session in JSP. 07
Q.5 (a) What is hibernate? What are the benefits of using it? 03
(b) What is HQL? How does it different from SQL? List its advantages. 04
(c) Explain the Spring Web MVC framework controllers 07
OR
Q.5 (a) What are the different bean scopes in spring? 03
(b) What is Spring Bean? How can you create bean in Spring boot? 04
(c) What is OR mapping? Explain the components of hibernate.cfg.xml file. 07
*************
1
Seat No.: ________ Enrolment No.___________
Q.1 (a) 1) How do you get the IP address of a machine from its hostname? 03
2) List out the important methods of HttpServletResponse.
3) What are the attributes for the JSP page directive?
(b) 1) What is the function of a SessionFactory object? How will you obtain 04
such an object?
2) How can you apply JSF Input Validation using input validators?
(c) What do you mean by session tracking? What are the session tracking 07
techniques? Demonstrate any of them.
Q.2 (a) What are the differences between a TCP socket and UDP socket? How are 03
they created in Java?
(b) Differentiate ServletConfig and ServletContext. 04
(c) What is connection URL? How do you make a database connection? Explain 07
various ways to make the database connection using JDBC code snippets.
OR
(c) What is JDBC driver? Explain its role and compare various JDBC drivers. 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 are the directive tags of JSP? Write a JSP page to demonstrate the use 07
of them.
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 are the implicit objects of JSP? Write a JSP page to demonstrate the use 07
them.
Q.4 (a) What is EL? Write a code snippet to show the use of method expressions in 03
JSF page.
(b) How will you use <h:commandButton> and <h:dataTable>? 04
(c) Develop a web application as following to demonstrate the use of 07
<jsp:useBean>.
Create a Java Bean named Employee with attributes name and age.
Create a web page to set the properties of Employee using
<jsp:useBean>.
Create a web page to display the properties of Employee using
<jsp:useBean>.
OR
Q.4 (a) What is JSTL? Write a code snippet to show the use of flow control tags. 03
(b) Write a code snippet to show the use of JSF action event. 04
1
(c) Develop a web application as following to demonstrate the use of JSTL SQL 07
tag library.
Create a web page to store the registration detail (Name, email and
contact number) of user in the database.
Create a web page for user to update registration detail in the database.
Create a web page to display the list of all registered users.
Q.5 (a) What is Spring AOP? What are Join points and Point cuts? 03
(b) What is dependency Injection? What is the role IoC container in Spring? 04
(c) What are the different Hibernate interfaces? Explain their role in brief. 07
OR
Q.5 (a) What is Hibernate? What are the features of it? 03
(b) What is OR mapping? How will you configure hibernate mapping file to map 04
a table and its columns from a given database?
(c) What are the advantages of Spring MVC? Explain the flow of Spring Web 07
MVC.
*************
2
Seat No.: ________ Enrolment No.___________
Q.3 (a) Discuss the use of execute(), executeUpdate() and executeQuery() methods. 03
(b) Differentiate ServletConfig and ServletContext objects. 04
(c) Write a servlet code which reads the student details from web page and stores 07
it in database.
OR
Q.3 (a) What is Filter? List the applications of filter. 03
(b) Discuss Servlet life cycle methods. Explain role of web container. 04
(c) What is Request Dispatcher? What is the difference between 07
RequestDispatcher’s forward() and include() method? Explain it in detail
with program.
Q.4 (a) What is difference between include directive and jsp:include action tag? 03
(b) Explain any four JSTL core tags. 04
(c) Explain the JSF request processing life cycle. 07
OR
Q.4 (a) What is the JSF facelets? Explain any two facelets tags. 03
(b) List the JSF standard converter tags and explain any three in detail. 04
(c) Write a JSP application for login module with reset password feature using 07
database connectivity.
1/2
OR
*************
2/2
http://www.gujaratstudy.com
Seat No.: ________ Enrolment No.___________
GUJARAT TECHNOLOGICAL UNIVERSITY
BE - SEMESTER–VI(NEW) – EXAMINATION – SUMMER 2019
Subject Code:2160707 Date:14/05/2019
Subject Name:Advanced Java
Time:10:30 AM TO 01:00 PM Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks..
Q.2 (a) What do you mean by MVC architecture? Explain its role in modern 03
applications with its advantages
(b) Write a Web application using servlet to find whether entered number is 04
prime or not.
(c) Explain JSF Application Life cycle with diagram. 07
OR
(c) Explain Hibernate Architecture and Object Relation Mapping in 07
Hibernate with java code and required XML files.
Q.4 (a) Explain the following classes with their use. i. URLConnection class 03
ii. DatagramSocket (iii) DatagramPacket class
(b) Write a JSP Page which use available java bean. Discuss functionality 04
of used java beans.
(c) Develop a jsp code which reads the student detail from web page and 07
stores it in database
OR
Q.4 (a) Explain JSP (i) page (ii) include (iii) taglib directive with attribute, 03
description.
(b) Discuss JSP Exception Handling. 04
(c) Write a servlet code to demonstrate prepare statement and callable 07
statement to retrieve and store employee data.
1/2
http://www.gujaratstudy.com
http://www.gujaratstudy.com
OR
Q.5 (a) Discuss JSF Convertor Tag. 03
(b) Explain following tags in JSTL with example : (i) Core (ii)XML 04
(c) Write a Java Servlet to print BE Semester Marksheet of entered 07
enrollment number and sem no by student using JDBC.
*************
2/2
http://www.gujaratstudy.com