0% found this document useful (0 votes)
38 views

AJP Question Paper

QP
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views

AJP Question Paper

QP
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Seat No.: ________ Enrolment No.

___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–VI (NEW) EXAMINATION – SUMMER 2022
Subject Code:3160707 Date:10/06/2022
Subject Name:Advanced Java Programming
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.
4. Simple and non-programmable scientific calculators are allowed.

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.2 (a) Compare Socket with ServerSocket. 03


(b) Compare the types of JDBC drivers? 04
(c) Explain JSP inbuilt objects with their use in application. 07
OR
(c) Write a java program where client sends a string as a message and sever counts 07
the characters in the received message from client. Server sends this value back
to the client. Server should be able to serve multiple clients simultaneously.

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.4 (a) What is JSF? List and explain its features. 03


(b) What is JSTL? Explain the core tags of the SQL tag library. 04
(c) Discuss various stages of JSP life cycle. 07
OR
Q.4 (a) What is a custom tag? Explain the life cycle of tag handler. 03
(b) What is filter? Explain the configuration of filter using deployment descriptor. 04
(c) Discuss JSF life cycle phases. 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.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–VI(NEW) EXAMINATION – WINTER 2022
Subject Code:3160707 Date:17-12-2022
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) 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.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER– VI (NEW) EXAMINATION – WINTER 2021
Subject Code:3160707 Date:04/12/2021
Subject Name:Advanced Java Programming
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.
4. Simple and non-programmable scientific calculators are allowed.
MARKS
Q.1 (a) Explain the usage of InetAddress class. 03
(b) Explain the use of PreparedStatement and CallableStatement with example. 04

(c) Explain JSP page directives with example. 07

Q.2 (a) Differentiate HTTP Get and Post methods. 03


(b) Explain any four implicit objects of JSP. 04
(c) Write a program in which client sends string from its standard input to the 07
server. The server reads the string, converts the string into upper case and
sends back to client. Use connection-oriented communication.
OR
(c) Write a JDBC program for banking application in which consider bank table with 07
attributes AccountNo, CustomerName, Phone and Address, and perform
followings:
1. Insert two records using prepared statement.
2. Display all the records.

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.

Q.5 (a) What is dependency injection? Explain in detail. 03


(b) What is HQL? Write difference between HQL and SQL. 04
(c) Explain Hibernate Architecture. 07

1/2
OR

Q.5 (a) Explain the features of Spring web MVC. 03


(b) What is ORM? Explain object/relational mappings in hibernate. 04
(c) Explain architecture of Spring MVC Framework. 07

*************

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.1 (a) Mention advantages of J2EE. 03


(b) Write a Web application using servlet to find the sum of all the digits of 04
an input integer.
(c) Describe the servlet life cycle with life cycle methods 07

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.3 (a) Explain functionality of Cookie. 03


(b) What is session? Explain session management using HTTPSession. 04
(c) Write a client-server program using TCP sockets to echo the message 07
send by the client.
OR
Q.3 (a) Discuss concept of JDBC. 03
(b) Explain JSP Object scope: (i) Page (ii) Request (iii) Session (iv) 04
Application with example.
(c) Write a client-server java programs using TCP sockets to get server date 07
on client machine.

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.

Q.5 (a) Discuss Hibernate Query Language. 03


(b) Discuss Java Bean life cycle with one example. 04
(c) Draw and explain Spring Framework Architecture. 07

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy