0% found this document useful (0 votes)
29 views3 pages

Aj QB

The document contains questions from four units related to Java networking, JDBC programming, servlet API and JSP. It includes questions related to TCP, UDP, RMI, JDBC drivers, prepared statements, servlets, filters, sessions, request and response objects, JSP life cycle and tags.

Uploaded by

yugm923
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views3 pages

Aj QB

The document contains questions from four units related to Java networking, JDBC programming, servlet API and JSP. It includes questions related to TCP, UDP, RMI, JDBC drivers, prepared statements, servlets, filters, sessions, request and response objects, JSP life cycle and tags.

Uploaded by

yugm923
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

College of Technology (01)

Silver Oak College of Engineering and Technology


Bachelor of Technology
Department of Computer Engineering (004)

Semester: 6th Academic Year: 2022-23


Subject Name: Advanced Java Subject Code: 1010043339

Question Bank

Unit 1: Java Networking

Sr. No Question

1 Difference between TCP and UDP.

3 WAP for server client connection using UDP.

4 WAP for server client connection using TCP.

5 Write an RMI application where client supplies two numbers and server
response by summing it. Provide your custom security policy for this
application.

6 Write a note on the Protocol handler.

7 Describe the use of URL class.

8 Explain the following classes with their use.


i. URLConnection class
ii. DatagramSocket and DatagramPacket class

9 Explain Socket, ServerSocket, InetAddress classes. Write a java program to find


an IP address of the machine on which the program runs.

10 Difference between socket and server socket.


Unit 2: JDBC Programming

Sr. No Question

1 What is JDBC? WAP to get data from the user & save it into the table.

2 Explain Statement in context of JDBC. Difference between prepared & callable


statements.

3 Retrieve data which is stored in the database table using Resultset.

4 Explain different types of JDBC drivers.

5 What is a ResultSet in JDBC? How do you process a ResultSet?

6 Explain JDBC Architecture.

7 What are the differences between Java Bean and basic java class? Explain Java
Bean Architecture

8 Explain the use of CallableStatement and PreparedStatement with example.

9 Show the use of PreparedStatement object to run precompiled SQL statement.


Also write example of java snippet for PreparedStaement.

10 Explain ResultSetMetaData with suitable program.

11 Explain JDBC Transaction Management in detail

12 What is ResultSet interface. Write various method for ResultSet interface.


Write a code to update record using this interface.

Unit 3: Servlet API and Overview

Sr. No Question

1 What is a Session? How to set value and get value from session?

2 Explain Servlet life cycle.

3 Difference between servlet config and servlet context.

4 What is filter API?

5 Explain advantages of Filter API?


6 What is the difference between doGet() and doPost() methods in Servlets?

7 Discuss the use of GET and POST with example.

8 What is Filter? List the applications of filter.

9 Explain Request and Response object in Servlet

10 Write a Java Servlet to demonstrate the use of Session Management.

Unit 4: Java Server Pages:

Sr. No Question

1 What is JSP? Explain Life cycle of JSP.

2 Write a program to create a java class and call it in the JSP page.

3 Explain Core tag library.

4 What is the difference between a Servlet and a JSP? When would you use one
over the other?

5 Difference between @include and <jsp:include>

6 How do you pass data from a Servlet to a JSP page?

7 Explain Use of scriptlet and expression tag. Explain it with an example.

8 Explain Directives. Give its type and explain any one in detail.

9 Explain JSP Object scope: (i) Page (ii) Request (iii) Session (iv) Application with
example.

10 Show the use of JSP page directive tag with its attributes.

11 Show the use of JSP inbuilt objects: request and response, with their use in
application.

Prof. Niti Khetra Dr. Satvik Khara


Subject Coordinator Head of Department

You might also like