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

advance-java-programming-question-bank

The document is a question bank for Advanced Java Programming, covering various topics such as Java Networking, JDBC Programming, Servlet API, Java Server Pages, Java Server Faces, Hibernate, and Spring MVC. Each topic includes multiple questions with associated marks, aimed at assessing knowledge and skills in advanced Java concepts. The questions range from theoretical explanations to practical programming tasks.

Uploaded by

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

advance-java-programming-question-bank

The document is a question bank for Advanced Java Programming, covering various topics such as Java Networking, JDBC Programming, Servlet API, Java Server Pages, Java Server Faces, Hibernate, and Spring MVC. Each topic includes multiple questions with associated marks, aimed at assessing knowledge and skills in advanced Java concepts. The questions range from theoretical explanations to practical programming tasks.

Uploaded by

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

lOMoARcPSD|26542949

Advance JAVA Programming Question BANK

Advance Java Programming (Gujarat Technological University)

Scan to open on Studocu

Studocu is not sponsored or endorsed by any college or university


Downloaded by Akash Akash ([email protected])
lOMoARcPSD|26542949

QUESTION BANK

Sr.No. TOPIC:1 Java Networking [CO-1] Marks

How do you get the IP address of a machine from its


1 1
hostname? (WINTER 2022)
What are the differences between a TCP socket and UDP
2 3
socket? How are they created in Java? (WINTER 2022)
3 Compare Socket with ServerSocket. (SUMMER 2022) 3
5 Explain the usage of InetAddress class. (WINTER 2021) 3
Write a program in which client sends string from its standard
input to the server. The server reads the string, converts the
6 7
string into upper case and sends back to client. Use
connection-oriented communication. (WINTER 2021)
Sr.No. TOPIC – 2 : JDBC Programming [CO-1] Marks
What is connection URL? How do you make a database
1 connection? Explain various ways to make the database 7
connection using JDBC code snippets. (WINTER 2022)
What is JDBC driver? Explain its role and compare various
2 7
JDBC drivers. (WINTER 2022)
What is the use of PreparedStatement? How will you use it?
3 3
(WINTER 2022)
What is the use of CallableStatement? How will you use it?
5 3
(WINTER 2022)
Explain the use of Prepared Statement with appropriate
6 7
example. (SUMMER 2022)
7 Compare the types of JDBC drivers? (SUMMER 2022) 4
Explain the use of PreparedStatement and CallableStatement
8 4
with example. (WINTER 2021)
Write a JDBC program for banking application in which
consider bank table with
attributes AccountNo, CustomerName, Phone and Address,
9 and perform 7
followings:
1. Insert two records using prepared statement.
2. Display all the records. (WINTER 2021)
Discuss the use of execute(), executeUpdate() and
10 3
executeQuery() methods. (WINTER 2021)

Sr.No. TOPIC – 3 : Servlet API and Overview [CO-2] Marks

List out the important methods of HttpServletResponse.


1 1
(WINTER 2022)
What do you mean by session tracking? What are the session
2 tracking 7
techniques? Demonstrate any of them. (WINTER 2022)
3 Differentiate ServletConfig and ServletContext. (WINTER 2022) 4

Downloaded by Akash Akash ([email protected])


lOMoARcPSD|26542949

What is filter? How will you configure filter using deployment


5 4
descriptor? (WINTER 2022)
6 What is FilterConfig? How will you use it? (WINTER 2022) 4
What is Servlet? Explain the life cycle methods of it. (SUMMER
7 4
2022)
Write a java program where client sends a string as a message
and sever counts the characters in the received message from
8 client. Server sends this value back to the client. Server should 7
be able to serve multiple clients simultaneously. (SUMMER
2022)
Explain the purpose of RequestDispatcher using the methods
9 4
forward () and include ().(SUMMER 2022)
What are cookies? Demonstrate the use of cookies in servlet.
10 7
(SUMMER 2022)
What is filter? Explain the configuration of filter using
11 4
deployment descriptor. (SUMMER 2022)
12 Differentiate HTTP Get and Post methods. (WINTER 2021) 3
Differentiate ServletConfig and ServletContext objects.
13 4
(WINTER 2021)
Write a servlet code which reads the student details from web
14 7
page and stores it in database. (WINTER 2021)
15 What is Filter? List the applications of filter. (WINTER 2021) 3
Discuss Servlet life cycle methods. Explain role of web
16 4
container. (WINTER 2021)
What is Request Dispatcher? What is the difference between
17 RequestDispatcher’s forward() and include() method? Explain it 7
in detail with program. (WINTER 2021)

Sr.No. TOPIC – 4 : Java Server Pages [CO-2] Marks

What are the attributes for the JSP page directive? (WINTER
1 1
2022)
What are the directive tags of JSP? Write a JSP page to
2 7
demonstrate the use of them. (WINTER 2022)
What are the implicit objects of JSP? Write a JSP page to
3 7
demonstrate the use them. (WINTER 2022)
What is JSTL? Write a code snippet to show the use of flow
5 3
control tags. (WINTER 2022)
Develop a web application as following to demonstrate the use
of JSTL SQL tag library.
฀ Create a web page to store the registration detail (Name,
email and contact number) of user in the database.
6 7
฀ 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.
(WINTER 2022)
Explain JSP inbuilt objects with their use in application.
7 7
(SUMMER 2022)
What is a session? List out various session management
8 3
techniques. (SUMMER 2022)

Downloaded by Akash Akash ([email protected])


lOMoARcPSD|26542949

Which action tags are used to access the JavaBeans from a


9 3
JSP page? (SUMMER 2022)
What is Expression Language EL in JSP explain with suitable
10 4
example program? (SUMMER 2022)
What is JSTL? Explain the core tags of the SQL tag library.
11 4
(SUMMER 2022)
12 Discuss various stages of JSP life cycle. (SUMMER 2022) 7
What is a custom tag? Explain the life cycle of tag handler.
13 3
(SUMMER 2022)
14 Explain JSP page directives with example. (WINTER 2021) 7
15 Explain any four implicit objects of JSP. (WINTER 2021) 4
What is difference between include directive and jsp:include
16 3
action tag? (WINTER 2021)
17 Explain any four JSTL core tags. (WINTER 2021) 4
Write a JSP application for login module with reset password
18 7
feature using database connectivity. (WINTER 2021)
What is session? Demonstrate the use of Session in JSP.
19 7
(SUMMER 2022)

Sr.No. TOPIC – 5 : Java Server Faces2.0 [CO-3] Marks

How can you apply JSF Input Validation using input


1 2
validators? (WINTER 2022)
What is EL? Write a code snippet to show the use of method
2 3
expressions in JSF page. (WINTER 2022)
How will you use <h:commandButton> and
3 4
<h:dataTable>?(WINTER 2022)
Write a code snippet to show the use of JSF action event.
5 4
(WINTER 2022)
6 Discuss JSF life cycle phases. (SUMMER 2022) 7
7 Explain the JSF request processing life cycle. (WINTER 2021) 7
What is the JSF facelets? Explain any two facelets tags.
8 3
(WINTER 2021)
List the JSF standard converter tags and explain any three in
9 4
detail. (WINTER 2021)
10 What is JSF? List and explain its features. (SUMMER 2022) 3

Sr.No. TOPIC – 6 : Hibernate 4.0 [CO-4] Marks

What is the function of a SessionFactory object? How will you


1 2
obtain such an object? (WINTER 2022)
2 What is Hibernate? What are the features of it? (WINTER 2022) 3
What is OR mapping? How will you configure hibernate
3 mapping file to map a table and its columns from a given 4
database? (WINTER 2022)
What is hibernate? What are the benefits of using it?
5 3
(SUMMER 2022)
What is HQL? How does it different from SQL? List its
6 4
advantages. (SUMMER 2022)

Downloaded by Akash Akash ([email protected])


lOMoARcPSD|26542949

What is OR mapping? Explain the components of


7 7
hibernate.cfg.xml file. (SUMMER 2022)
What is HQL? Write difference between HQL and SQL.
8 4
(WINTER 2021)
9 Explain Hibernate Architecture. (WINTER 2021) 7
What is ORM? Explain object/relational mappings in
10 4
hibernate. (WINTER 2021)
Sr.No. TOPIC – 7 : Java Web Frameworks: Spring MVC [CO-5] Marks
Develop a web application as following to demonstrate the use
of <jsp:useBean>.
฀ Create a Java Bean named Employee with attributes name
and age.
1 7
฀ 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>.(WINTER 2022)
What is Spring AOP? What are Join points and Point cuts?
2 3
(WINTER 2022)
What is dependency Injection? What is the role IoC container
3 4
in Spring? (WINTER 2022)
What are the advantages of Spring MVC? Explain the flow of
4 7
Spring Web MVC. (WINTER 2022)
What do you mean by MVC architecture? Explain its role in
5 3
modern applications with its advantages. (SUMMER 2022)
Explain the Spring Web MVC framework controllers. (SUMMER
6 7
2022)
7 What are the different bean scopes in spring? (SUMMER 2022) 3
What is Spring Bean? How can you create bean in Spring
8 4
boot? (SUMMER 2022)
What is dependency injection? Explain in detail.
9 3
(WINTER 2021)
10 Explain the features of Spring web MVC. (WINTER 2021) 3
Explain architecture of Spring MVC Framework.
11 7
(WINTER 2021)

Downloaded by Akash Akash ([email protected])

You might also like