0% found this document useful (0 votes)
6 views7 pages

Java Networking and JDBC Exam Questions

The document outlines key topics and frequently asked questions related to Java Networking, JDBC Programming, Servlet API, JSP, JSTL, JSF, and Hibernate, categorized into repeated and non-repeated questions based on their appearance in past papers. It highlights essential syllabus topics, including differences between socket types, JDBC drivers, servlet life cycles, JSP action tags, JSTL core tags, JSF life cycle, and Hibernate architecture. Each unit contains specific questions along with their marks and the semesters in which they appeared.

Uploaded by

darjih460
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)
6 views7 pages

Java Networking and JDBC Exam Questions

The document outlines key topics and frequently asked questions related to Java Networking, JDBC Programming, Servlet API, JSP, JSTL, JSF, and Hibernate, categorized into repeated and non-repeated questions based on their appearance in past papers. It highlights essential syllabus topics, including differences between socket types, JDBC drivers, servlet life cycles, JSP action tags, JSTL core tags, JSF life cycle, and Hibernate architecture. Each unit contains specific questions along with their marks and the semesters in which they appeared.

Uploaded by

darjih460
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

Unit 1: Java Networking

1.1 Repeated Questions (Appeared in 4+ Papers)

Sr. Syllabus
Question Marks Papers
No. Topic

Winter 2022, Winter


What are the differences between a TCP socket and 2024, Summer 2025 Socket,
1 03
UDP socket? How are they created in Java? Datagram
(3 papers)

1.2 Non-Repeated Questions (Appeared in 1–3 Papers)

Sr.
Question Marks Papers Syllabus Topic
No.

Explain the usage of InetAddress class / Explain Winter 2021,


1 03 InetAddress
the usage of InetAddress class with example Summer 2025

Explain URL and URLConnection class with


2 03 Summer 2024 URL, URLConnection
example

3 Explain the usage of Socket class with example 03 Winter 2023 Socket

Compare Socket with ServerSocket / Compare Summer 2022,


4 03 Socket, ServerSocket
ServerSocket with Socket Summer 2023

What are the differences between a TCP socket Winter 2022, Winter
5 03 Socket, Datagram
and UDP socket? How are they created in Java? 2024

URLConnection,
Explain the following classes: URLConnection,
6 04 Summer 2025 Datagram,
DatagramSocket, DatagramPacket, ServerSocket
ServerSocket

Implement the client server program using UDP


7 Sockets. Client will request to download the file 04 Summer 2023 Datagrams
from server and server will send it to client.

Write a client-server program using TCP/UDP Summer 2024,


TCP/IP client-server
8 sockets to echo the message sent by the client / 07 Winter 2023
sockets
similar echo programs (multiple variations)

Write a program in which client sends string from


Winter 2021, Winter TCP/IP client-server
9 its standard input to the server. The server 07
2023, Summer 2025 sockets
converts it to uppercase and sends back (TCP)

How do you handle multiple clients concurrently ServerSocket,


10 07 Winter 2024
in socket programming? Explain with example concurrency
1.3 Syllabus Topics

Covered Topics Not Covered Topics

• InetAddress

• Socket, ServerSocket
• Multicast sockets
• TCP/IP client sockets, server sockets
• Advanced [Link] package classes (rarely asked)
• URL, URLConnection

• Datagrams, DatagramSocket, DatagramPacket

Unit 2: JDBC Programming

2.1 Repeated Questions (Appeared in 4+ Papers)

Sr.
Question Marks Papers Syllabus Topic
No.

Summer 2022, Winter 2022,


What is the use of PreparedStatement? How
Summer 2023, Winter 2023,
1 will you use it? / Write a code snippet to 03–04 PreparedStatement
Winter 2024, Summer 2025 (6+
show the use of PreparedStatement
papers)

What is JDBC driver? Explain its role and Winter 2022, Summer 2024,
2 compare various JDBC drivers / List and 07 Winter 2024 (multiple JDBC Drivers
compare types of JDBC drivers variations)

2.2 Non-Repeated Questions (Appeared in 1–3 Papers)

Sr.
Question Marks Papers Syllabus Topic
No.

Differentiate Statement and PreparedStatement /


Winter 2023, Statement,
1 Explain Statement and PreparedStatement with 04
Summer 2024 PreparedStatement
example

Winter 2023,
Discuss the use of CallableStatement / What is the
2 03–04 Summer 2024, CallableStatement
use of CallableStatement? How will you use it?
Winter 2024

3 Demonstrate the use of ResultSetMetaData 03 Summer 2023 ResultSetMetaData

Discuss the use of execute(), executeUpdate() and Winter 2021,


4 03 Statement Interface
executeQuery() methods Summer 2025

Write JDBC program to insert records using Winter 2021, Winter PreparedStatement,
5 07
PreparedStatement and display records 2023 Transaction
2.3 Syllabus Topics

Covered Topics Not Covered Topics

• JDBC Drivers (Types 1–4)

• Statement, PreparedStatement, CallableStatement • Batch Processing (rare)

• ResultSetMetaData • RowSet (never asked)

• Connection, execute methods

Unit 3: Servlet API and Overview

3.1 Repeated Questions (Appeared in 4+ Papers)

Sr.
Question Marks Papers Syllabus Topic
No.

Differentiate ServletConfig and Winter 2021, Summer 2022,


ServletConfig,
1 ServletContext / Demonstrate the use of 04 Winter 2022, Summer 2023,
ServletContext
ServletConfig and ServletContext Summer 2024 (6 papers)

What is RequestDispatcher? Difference Winter 2021, Summer 2023,


RequestDispatcher
2 between forward() and include() method. 07 Summer 2024, Summer
interface
Explain with program 2025 (5 papers)

3.2 Non-Repeated Questions

Sr.
Question Marks Papers Syllabus Topic
No.

Summer 2022,
Explain Servlet life cycle / List and explain various stages Servlet Life
1 04 Winter 2023,
of Servlet life cycle Cycle
Summer 2025

What is Session? List and explain different session Winter 2022,


Session
2 tracking techniques / What do you mean by session 07 Summer 2023,
Management
tracking? Discuss different techniques Summer 2024

Write a servlet code for login application using database Winter 2023,
3 07 Servlet + JDBC
connectivity / similar login servlet programs Summer 2024

Winter 2022,
What is Filter? How will you configure filter using
4 04 Summer 2023, Filter, [Link]
deployment descriptor ([Link])
Winter 2024

3.3 Syllabus Topics

Covered Topics Not Covered Topics

• Servlet Life Cycle

• ServletConfig, ServletContext) • GenericServlet vs HttpServlet depth (rare)

• RequestDispatcher (forward/include)
Covered Topics Not Covered Topics

• Session tracking techniques

• Filter & [Link]

Unit 4: JavaServer Pages (JSP)

4.1 Repeated Questions (Appeared in 4+ Papers)

Sr.
Question Marks Papers Syllabus Topic
No.

Explain JSP Action tags with example / List and Winter 2021, Winter
1 07 JSP Action tags
Explain JSP Action Tags with example 2023, Summer 2025

Winter 2023, Summer


2 Compare JSP and Servlet 03–04 JSP vs Servlet
2024, Summer 2025

What is difference between include directive and Winter 2021, Winter Include directive
3 03
<jsp:include> action tag? 2023, Summer 2024 vs action

4.2 Non-Repeated Questions

Sr. Syllabus
Question Marks Papers
No. Topic

Explain JSP page directives with example / List JSP page Winter 2021,
1 07 Page directive
directive attributes Summer 2025

2 Explain JSP life cycle phases 04 Summer 2024 JSP Life Cycle

Explain any four implicit objects of JSP / List JSP implicit Winter 2021, Implicit
3 04
objects and explain any two Winter 2024 objects

Develop a web application to demonstrate <jsp:useBean>,


Summer 2023,
4 <jsp:setProperty>, <jsp:getProperty> (Student/Employee 07 <jsp:useBean>
Winter 2022
bean)

4.3 Syllabus Topics

Covered Topics Not Covered Topics

• JSP Directives (page, include, taglib)

• Action tags (<jsp:include>, <jsp:forward>, <jsp:useBean>)

• Implicit objects • Custom tags in depth (moved to JSTL/JSF)

• Scripting elements

• JSP vs Servlet
Unit 5: JSTL, Expression Language and Custom Tags

5.1 Repeated Questions (Appeared in 4+ Papers)

Sr. No. Question Marks Papers Syllabus Topic

None

5.2 Non-Repeated Questions

Sr.
Question Marks Papers Syllabus Topic
No.

Winter 2021,
1 Explain any three/four JSTL Core tags with example 04 JSTL Core tags
Summer 2024

What is EL? Write a code snippet to show the use of Summer 2023, Expression
2 03
method expressions in JSP/JSF page Winter 2022 Language (EL)

What is difference between JSTL tag <c:import> and JSTL vs JSP


3 03 Winter 2023
<jsp:include> action tag? include

5.3 Syllabus Topics

Covered Topics Not Covered Topics

• JSTL Core tags (c:out, c:set, c:if, c:forEach,


c:import) • Full formatting, XML, SQL tags of JSTL (rarely
asked)
• Expression Language basics

Unit 6: JavaServer Faces (JSF) and Spring Basics

6.1 Repeated Questions (Appeared in 4+ Papers)

Sr. Syllabus
Question Marks Papers
No. Topic

Discuss/Explain the JSF request processing life Summer 2023, Winter 2023, JSF Life
1 07
cycle / Draw and explain JSF life cycle phases Summer 2024, Winter 2021 Cycle

6.2 Non-Repeated Questions

Sr.
Question Marks Papers Syllabus Topic
No.

What is the JSF facelets? Explain any two Winter 2021, Summer
1 03–04 Facelets
facelets tags 2024

Write a code snippet to show the use of JSF Summer 2023, Winter
2 03–04 JSF Events
action event / <h:commandButton> 2022, Winter 2024
Sr.
Question Marks Papers Syllabus Topic
No.

List the JSF standard validator/converter tags Winter 2023, Summer


3 04 Validators/Converters
and explain any three/two 2024

6.3 Syllabus Topics

Covered Topics Not Covered Topics

• JSF Request Processing Life Cycle (6 phases)

• Facelets tags • Managed Beans configuration depth

• Standard validators & converters • Navigation rules

• Basic components (h:commandButton, action event)

Unit 7: Hibernate and Spring Framework

7.1 Repeated Questions (Appeared in 4+ Papers)

Sr.
Question Marks Papers Syllabus Topic
No.

Explain Hibernate Architecture in detail / Winter 2021, Summer 2023, Hibernate


1 07
Draw and explain Hibernate Architecture Summer 2024, Winter 2024 Architecture

What is ORM? Explain object/relational Summer 2024, Winter 2024, ORM, Hibernate
2 04–07
mappings in Hibernate Summer 2025 Mapping

7.2 Non-Repeated Questions

Sr.
Question Marks Papers Syllabus Topic
No.

Winter 2021,
1 What is HQL? Write difference between HQL and SQL 04 HQL vs SQL
Summer 2024

Discuss Spring framework architecture in detail / Summer 2023,


2 07 Spring Architecture
Explain architecture of Spring MVC Framework Summer 2024

Explain the role of IoC container in Spring / What is Summer 2023, IoC, Dependency
3 03–04
Dependency Injection? Winter 2024 Injection

What is Hibernate? List advantages of Hibernate over Summer 2022,


4 03 Hibernate vs JDBC
JDBC / Compare Hibernate and JDBC Winter 2024
7.3 Syllabus Topics

Covered Topics Not Covered Topics

• Hibernate Architecture

• ORM and Mapping ([Link] / annotations)


• Caching
• HQL vs SQL
• Spring Boot depth
• Spring MVC Architecture

• IoC & Dependency Injection

You might also like