QUESTION BANK-JAVA PROGRAMMING
Question No | Question Text | Cognitive Level | BL | Marks
1. Define Object-Oriented Programming. List any four advantages of using OOP in Java.
Low | K1 | 3
2. What is the difference between object and class in Java? Give an example for each.
Low | K1 | 3
3. Explain the four main principles of Object-Oriented Programming: Encapsulation, Inheritance,
Polymorphism, and Abstraction.
Low | K2 | 4
4. Differentiate between procedural programming and object-oriented programming with suitable
examples.
Low | K2 | 4
5. Write a Java program to demonstrate the concept of encapsulation using getter and setter
methods.
Medium | K3 | 5
6. Illustrate the concept of inheritance in Java with an example showing method overriding.
Medium | K3 | 5
7. Analyze how abstraction helps in managing software complexity. Provide an example using
abstract classes or interfaces in Java.
Medium | K4 | 8
8. (a) Evaluate the use of polymorphism in real-world applications. Develop a Java code snippet
demonstrating compile-time and runtime polymorphism.
OR
8. (b) Design a simple Java application for a "Shape" hierarchy that demonstrates the use of
inheritance and method overriding to compute area and perimeter.
Medium | K4 | 8
9.
Case/Scenario-based Question:
You are designing a Student Management System for a university. Each student has attributes like
name, roll number, and department. Undergraduate and postgraduate students have different fee
calculation methods.
a) Identify the classes, attributes, and methods you would design for this system.
b) Write a Java code structure implementing inheritance and polymorphism.
c) Justify how encapsulation and abstraction improve the maintainability of this system.
High | K5 | 10
OR
9.
Case/Scenario-based Question:
You are developing a Library Management System using OOP concepts. The system must handle
different types of users (Student, Faculty), each having different borrowing privileges.
a) Define the class hierarchy.
b) Illustrate how polymorphism can be used to manage borrowing behavior.
c) Explain how reusability and modularity are achieved through inheritance in your design.
High | K5 | 10
Question
Question Text Cognitive Level BL Marks
No
Define polymorphism. What are the
1 two types of polymorphism Low K1 3
supported in Java?
What is method overloading in Java?
2 List the rules for implementing Low K1 3
method overloading.
Question
Question Text Cognitive Level BL Marks
No
Explain the difference between
compile-time and runtime
3 Low K2 4
polymorphism with suitable
examples.
Differentiate between method
4 overloading and method overriding Low K2 4
in Java. Provide a simple illustration.
Write a Java program to
demonstrate method overloading by
5 Medium K3 5
calculating the area of different
shapes.
Illustrate runtime polymorphism in
Java by creating a class hierarchy of
6 Medium K3 5
Vehicle, Car, and Bike, where each
class defines a run() method.
Analyze how Java resolves
overloaded methods during
7 compilation. Why can’t method Medium K4 8
overloading be achieved by changing
only the return type?
Evaluate the role of polymorphism in
achieving flexibility and reusability in
8 (a) object-oriented design. Support your Medium K4 8
answer with an example Java
program.
Design a simple Java application
for an Employee Management
System using method overriding
OR 8 (b) Medium K4
to calculate different bonus
amounts for Manager and
Developer classes.
Case/Scenario-Based Question: You
are developing a Banking
Application where different account
9 types (Savings, Current, Loan) High K5 10
implement a calculateInterest()
method differently. (a) Identify the
classes, attributes, and methods. (b)
Write a Java code demonstrating
Question
Question Text Cognitive Level BL Marks
No
runtime polymorphism. (c) Discuss
how method overloading could be
used to handle multiple interest
calculation cases.
Case/Scenario-Based Question: In
a Shopping Application, you need
to generate invoices using
overloaded generateBill()
methods for single items, multiple
items, and discounted items. (a)
OR 9 High K5
Design the overloaded methods.
(b) Write Java code to
demonstrate compile-time
polymorphism. (c) Evaluate how
polymorphism enhances code
reusability and maintainability.
Question
Question Text Cognitive Level BL Marks
No
Define a constructor in Java. How
1 does it differ from a regular Low K1 3
method?
What are the types of constructors
2 available in Java? Explain each with Low K1 3
examples.
Explain the concept of constructor
3 overloading in Java with a suitable Low K2 4
example.
Differentiate between a default
constructor and a parameterized
4 constructor. Provide a small Java Low K2 4
code snippet to illustrate the
difference.
Write a Java program to
demonstrate constructor
5 Medium K3 5
overloading using different
numbers and types of parameters.
Question
Question Text Cognitive Level BL Marks
No
Write a Java program that uses
constructors to initialize student
6 Medium K3 5
details (name, roll number, marks)
and display them.
Analyze the importance of using
constructors for object initialization
7 compared to using setter methods. Medium K4 8
Provide justification with an
example.
Evaluate how constructor chaining
works in Java. Demonstrate it with
8 (a) Medium K4 8
an example that uses both this()
and super() calls.
Design a Java class hierarchy for a
Vehicle superclass and subclasses
Car and Bike, showing the use of
OR 8 (b) Medium K4
constructors and constructor
overloading to initialize attributes
like speed and model.
Case/Scenario-Based Question:
You are designing a Hotel
Reservation System. Each Room
object should have attributes like
room number, type, and tariff.
Different types of rooms (Standard,
9 Deluxe, Suite) have different High K5 10
initialization needs. (a) Identify
appropriate constructors. (b) Write
a Java code snippet implementing
constructor overloading. (c) Explain
how constructor overloading
enhances code flexibility.
Case/Scenario-Based Question: A
Bank Account System requires
different constructors to open an
OR 9 account using either a customer ID, High K5
name and balance, or all details
including branch code. (a) Design
the constructors for this scenario.
(b) Implement a Java program to
Question
Question Text Cognitive Level BL Marks
No
demonstrate constructor
overloading. (c) Analyze how using
overloaded constructors simplifies
object creation for different
account types.
Question
Question Text Cognitive Level BL Marks
No
Define the this keyword in Java.
1 Low K1 3
What is its primary purpose?
What is the static keyword in Java?
2 Low K1 3
List any three uses of it.
Explain the different situations
3 where the this keyword can be Low K2 4
used in Java with examples.
Differentiate between instance
4 variables and static variables with Low K2 4
suitable examples.
Write a Java program to
demonstrate the use of this
5 Medium K3 5
keyword to invoke a constructor
(constructor chaining).
Write a Java program that
demonstrates the use of static
6 variables and static methods to Medium K3 5
count the number of objects
created for a class.
Analyze how the static keyword
helps in memory management and
7 sharing of class-level data among Medium K4 8
objects. Support your answer with
an example.
Evaluate the role of this and static
keywords in enhancing code clarity
8 (a) Medium K4 8
and reusability. Illustrate with a
program that uses both.
Question
Question Text Cognitive Level BL Marks
No
Design a Java program for a
BankAccount class where this is
used to differentiate instance
OR 8 (b) Medium K4
variables from parameters, and
static is used to maintain the total
number of accounts created.
Case/Scenario-Based Question:
You are developing a Student
Management System. Each student
object must store name, roll
number, and marks. The class
should also maintain a static
counter for the total number of
9 High K5 10
students created. (a) Identify where
to use this and static in the class.
(b) Write a Java code snippet
implementing these features. (c)
Justify how using this and static
improves the efficiency and
maintainability of your code.
Case/Scenario-Based Question: In
a Library System, each book object
has attributes like bookID, title, and
price. The system must maintain a
static variable for the total number
of books and use this to resolve
ambiguity in parameterized
OR 9 High K5
constructors. (a) Design the class
using appropriate keywords. (b)
Implement Java code
demonstrating their usage. (c)
Discuss the advantages of
combining this and static in this
context.
Question
Question Text Cognitive Level BL Marks
No
Define inheritance in Java. Why is it
1 Low K1 3
used?
Question
Question Text Cognitive Level BL Marks
No
List and briefly describe the
2 different types of inheritance Low K1 3
supported in Java.
Explain the concept of single
3 inheritance in Java with an example Low K2 4
program.
Differentiate between multilevel
4 and hierarchical inheritance with Low K2 4
the help of examples.
Write a Java program to
demonstrate multilevel inheritance
5 Medium K3 5
using classes Animal → Mammal →
Dog.
Write a Java program to implement
hierarchical inheritance using a
6 Medium K3 5
Shape superclass and subclasses
Circle and Rectangle.
Analyze the limitations of multiple
inheritance in Java. How does Java
7 Medium K4 8
achieve similar functionality using
interfaces?
Evaluate how inheritance promotes
reusability and reduces code
8 (a) redundancy in object-oriented Medium K4 8
design. Illustrate with a Java
example.
Design a Java class hierarchy for a
University System where Person is
the superclass and Student and
OR 8 (b) Faculty are subclasses, each with Medium K4
specific attributes and behaviors.
Demonstrate the use of inheritance
and method overriding.
Case/Scenario-Based Question:
You are developing a Vehicle
9 Management System. The base High K5 10
class Vehicle contains attributes like
brand and speed. Subclasses Car
Question
Question Text Cognitive Level BL Marks
No
and Truck inherit from Vehicle and
override a method displayInfo(). (a)
Identify the inheritance type used.
(b) Write the Java code for this
scenario. (c) Justify how inheritance
simplifies system extensibility.
Case/Scenario-Based Question:
Design a Hospital Management
System where the base class Staff
has common attributes, and
subclasses Doctor, Nurse, and
Technician extend it with
OR 9 specialized fields and behaviors. (a) High K5
Describe the inheritance model. (b)
Write a Java code snippet
implementing this structure. (c)
Evaluate how hierarchical
inheritance improves
maintainability and reusability.
1 Define the super keyword in Java and explain its significance in inheritance with a simple
example.
2 Differentiate between super() and this() constructor calls in Java. When should each be used?
3 Explain with an example how super can be used to access a method of the parent class that is
overridden in a subclass.
4 Describe the rules and restrictions related to using super() inside a constructor in Java. Why
must it appear as the first statement?
5 Write a Java program with two classes Animal and Dog where the subclass constructor
explicitly calls the superclass constructor using super().
Explain the program flow.
6 Design a Java program where class Employee calls both this() and super() in its constructors,
and demonstrate the order of constructor execution with proper output statements.
7 Analyze the following code snippet and determine the exact sequence of constructor calls and
outputs:
class Parent {
Parent() { [Link]("Parent constructor"); }
}
class Child extends Parent {
Child() { [Link]("Child constructor"); }
class GrandChild extends Child {
GrandChild() { [Link]("GrandChild constructor"); }
public class Test {
public static void main(String[] args) {
new GrandChild();
8 A software firm is creating a class hierarchy for a payroll system.
Class Employee has attributes: empId and name. It has a parameterized constructor.
Class Manager extends Employee and adds an attribute: department.
Class SeniorManager extends Manager and adds an attribute: region.
(a) Implement this hierarchy in Java using constructor chaining with super().
(b) Demonstrate the order of constructor calls when a SeniorManager object is created.
(c) Explain how Java ensures proper constructor invocation across inheritance levels.
9 A vehicle manufacturing company models its product line using inheritance.
The base class Vehicle includes attributes: brand and price, initialized via a constructor.
The subclass Car adds an attribute: doors and overrides a display() method.
Another subclass ElectricCar extends Car and adds an attribute: batteryCapacity.
(a) Write a Java program to demonstrate constructor chaining using super().
(b) Trace the order of constructor execution when creating an ElectricCar object.
(c) Justify how super() supports reusability and reduces code duplication.
OR
A university has a base class Person with attributes: name and age.
A subclass Faculty extends Person and adds an attribute: department.
Another subclass HeadOfDepartment extends Faculty and adds experience.
(a) Implement the classes in Java using constructor chaining with super().
(b) Explain the role of super in ensuring proper object initialization.
(c) Discuss how the same example would differ if super() were omitted from subclass constructors.
Question
Question Text Cognitive Level BL Marks
No
Define method overriding in Java.
1 What are the conditions required for Low K1 3
overriding a method?
What is runtime polymorphism? How
2 Low K1 3
is it achieved in Java?
Explain the difference between
3 method overloading and method Low K2 4
overriding with suitable examples.
Discuss the role of dynamic method
4 dispatch in achieving runtime Low K2 4
polymorphism.
Write a Java program that
demonstrates method overriding
5 Medium K3 5
using a base class Animal and derived
classes Dog and Cat.
Write a Java program that
demonstrates runtime
6 Medium K3 5
polymorphism using superclass
reference and subclass objects.
Analyze how access modifiers and
return types affect method
7 Medium K4 8
overriding in Java. Provide
appropriate examples.
Evaluate the use of runtime
polymorphism in real-world
8 (a) applications such as GUI frameworks Medium K4 8
or game development. Provide a
Java-based example.
OR 8 (b) Design a Java program for a Shape Medium K4
hierarchy with classes Shape,
Question
Question Text Cognitive Level BL Marks
No
Circle, and Rectangle, where each
class overrides a draw() method to
demonstrate runtime
polymorphism.
Case/Scenario-Based Question: You
are designing a Payment Processing
System where the superclass
Payment has a method
processPayment(). Subclasses
CreditCardPayment, UPIPayment,
and CashPayment override this
9 High K5 10
method. (a) Identify the inheritance
and polymorphism concepts used.
(b) Write a Java program
implementing the scenario. (c)
Discuss how runtime polymorphism
improves flexibility and extensibility
in this system.
Case/Scenario-Based Question: In
a Transport Booking System, the
superclass Transport has a method
calculateFare(). Subclasses Bus,
Train, and Flight override this
method with their own
implementations. (a) Write Java
OR 9 High K5
code to demonstrate runtime
polymorphism. (b) Explain how
dynamic binding enables correct
method execution at runtime. (c)
Evaluate the benefits of overriding
in large-scale object-oriented
systems.
Question
Question Text Cognitive Level BL Marks
No
Define an abstract class in Java. How
1 Low K1 3
is it different from a concrete class?
2 What is an abstract method? State Low K1 3
the rules for declaring and
Question
Question Text Cognitive Level BL Marks
No
implementing abstract methods in
Java.
Explain the need for abstract classes
3 in object-oriented programming with Low K2 4
a suitable example.
Differentiate between abstract
4 classes and interfaces in Java. Provide Low K2 4
a tabular comparison.
Write a Java program that
demonstrates the creation of an
abstract class Shape and two
5 Medium K3 5
subclasses Circle and Rectangle
implementing the abstract method
area().
Develop a Java program using an
abstract class Employee with
6 subclasses Manager and Developer, Medium K3 5
each implementing their version of
calculateSalary().
Analyze how abstract classes
contribute to design abstraction and
7 extensibility in large software Medium K4 8
systems. Support your answer with
an example.
Evaluate the role of abstract methods
in enforcing a contract for subclass
8 (a) Medium K4 8
implementation. Illustrate your
answer with a Java example.
Design a class hierarchy for a
Vehicle System where Vehicle is an
abstract class containing an
OR 8 (b) abstract method fuelEfficiency(), Medium K4
and subclasses Car and Bike
provide their own
implementations.
Case/Scenario-Based Question: You
9 are developing an Online Payment High K5 10
System where an abstract class
Question
Question Text Cognitive Level BL Marks
No
Payment defines an abstract method
processPayment(). Subclasses
CreditCardPayment, UPIPayment,
and NetBankingPayment override
this method. (a) Identify how
abstraction improves system
scalability. (b) Write a Java code
implementing the scenario. (c)
Evaluate how using abstract classes
supports code reusability and
maintainability.
Case/Scenario-Based Question: In
a University Grading System, an
abstract class Course defines an
abstract method calculateGrade().
Subclasses TheoryCourse and
LabCourse implement this method
OR 9 High K5
differently. (a) Illustrate the class
design and inheritance structure.
(b) Write Java code to demonstrate
the implementation. (c) Analyze
how abstraction simplifies future
course type additions.
Question
Question Text Cognitive Level BL Marks
No
Define an interface in Java. How is it
1 Low K1 3
different from an abstract class?
What are the key characteristics of
2 Low K1 3
interfaces in Java?
Explain how interfaces support multiple
3 Low K2 4
inheritance in Java.
Differentiate between implementation
4 inheritance and interface inheritance in Low K2 4
Java with examples.
5 Write a Java program that Medium K3 5
demonstrates the use of an interface
Question
Question Text Cognitive Level BL Marks
No
Drawable implemented by classes
Circle and Rectangle.
Write a Java program where a class
6 implements multiple interfaces to Medium K3 5
demonstrate multiple inheritance.
Analyze the significance of default and
static methods in interfaces introduced
7 Medium K4 8
in Java 8. How do they enhance
interface design?
Evaluate how interfaces achieve
abstraction and multiple inheritance
8 (a) Medium K4 8
simultaneously in Java. Provide an
illustrative example.
Design a Java program for a
Payment Gateway System
where multiple interfaces
(CardPayment, UPIPayment) are
OR 8 (b) Medium K4
implemented by a class
OnlinePayment. Demonstrate
how multiple inheritance is
achieved.
Case/Scenario-Based Question: You
are developing a Smart Device Control
System. Define interfaces
WiFiConnectable and
BluetoothConnectable. Create a class
SmartSpeaker that implements both
9 High K5 10
interfaces to demonstrate multiple
inheritance. (a) Design the interfaces
and class. (b) Write Java code
implementing this design. (c) Justify
how using interfaces promotes
scalability and code flexibility.
Case/Scenario-Based Question:
Design a Transport
OR 9 Management System where High K5
interfaces Engine and Fuel are
implemented by a class Car. Each
interface should contain relevant
Question
Question Text Cognitive Level BL Marks
No
abstract methods and default
methods. (a) Define the
interfaces and class structure.
(b) Write Java code
demonstrating the use of
multiple inheritance via
interfaces. (c) Evaluate the
advantages of using interfaces in
such modular system designs.
Question
Question Text Cognitive Level BL Marks
No
Define an exception in Java. How does
1 Java handle abnormal program Low K1 3
termination?
What is the exception hierarchy in Java?
2 Low K1 3
Name the root classes of all exceptions.
Explain the difference between checked
3 and unchecked exceptions with Low K2 4
examples.
Differentiate between Error, Exception,
4 Low K2 4
and RuntimeException classes in Java.
Write a Java program that demonstrates
handling of ArithmeticException and
5 Medium K3 5
ArrayIndexOutOfBoundsException using
multiple catch blocks.
Write a Java program to illustrate the
concept of checked exceptions using
6 Medium K3 5
FileNotFoundException and
IOException.
Analyze the importance of exception
hierarchy in structured error handling.
7 Medium K4 8
How does it improve program
robustness?
8 (a) Evaluate how user-defined exceptions Medium K4 8
can be integrated within Java’s
Question
Question Text Cognitive Level BL Marks
No
exception hierarchy. Write a program to
demonstrate it.
Design a Java application for an
Online Banking System that
throws and handles both
OR 8 (b) checked (e.g., IOException) and Medium K4
unchecked (e.g.,
NumberFormatException)
exceptions appropriately.
Case/Scenario-Based Question: You are
developing a File Management System.
The application must catch checked
exceptions (IOException,
FileNotFoundException) and unchecked
exceptions (NullPointerException). (a)
9 High K5 10
Identify the exception hierarchy
applicable here. (b) Write Java code
demonstrating appropriate handling
using try-catch-finally. (c) Justify the
importance of using hierarchical
exception handling for robust design.
Case/Scenario-Based Question:
In a Student Result Processing
System, exceptions may occur
such as InvalidMarksException
(user-defined) and
ArithmeticException (built-in).
(a) Design the user-defined
OR 9 High K5
exception class. (b) Write a Java
program demonstrating
checked and unchecked
exception handling. (c) Evaluate
how exception hierarchy
supports modular and
maintainable error handling.
Question
Question Text Cognitive Level BL Marks
No
Define exception handling in
1 Java. Why is it needed in a Low K1 3
program?
What is a user-defined
2 exception? How is it different Low K1 3
from built-in exceptions?
Explain the five keywords used in
3 Java exception handling with Low K2 4
suitable examples.
Differentiate between throw and
4 throws keywords in Java with Low K2 4
proper syntax and examples.
Write a Java program that
demonstrates the use of try,
5 Medium K3 5
catch, and finally blocks for
exception handling.
Write a Java program to create
and use a user-defined exception
6 InvalidAgeException that is Medium K3 5
thrown when a user’s age is less
than 18.
Analyze how user-defined
exceptions improve readability
7 and modularity in large-scale Medium K4 8
applications. Support your
answer with a suitable example.
Evaluate how the use of multiple
catch blocks and the finally
8 (a) clause ensures robust exception Medium K4 8
handling in Java. Illustrate with a
sample program.
Design a Java program for a Bank
Account System that throws a user-
OR 8 (b) defined exception Medium K4
InsufficientFundsException when
withdrawal exceeds the available
Question
Question Text Cognitive Level BL Marks
No
balance. Demonstrate how exceptions
are handled using try-catch.
Case/Scenario-Based Question:
You are developing an Online
Examination System where
invalid login attempts should
raise a LoginFailedException
(user-defined). (a) Design and
implement this custom
9 High K5 10
exception class. (b) Write a
program demonstrating the
throwing and handling of this
exception. (c) Analyze the
benefits of user-defined
exceptions in improving program
reliability.
Case/Scenario-Based Question: In a
Library Management System, a user-
defined exception
BookNotAvailableException should be
thrown when a requested book is not
found in the catalog. (a) Write the
OR 9 High K5
custom exception class. (b) Implement
a Java program demonstrating
exception propagation using throws. (c)
Evaluate how effective exception
handling mechanisms enhance user
experience and software robustness.
Question
Question Text Cognitive Level BL Marks
No
Define the Java Collections
1 Framework. Why is it important in Low K1 3
Java programming?
What is the Collection interface in
2 Low K1 3
Java? List its key methods.
Question
Question Text Cognitive Level BL Marks
No
Explain the hierarchy of the Java
3 Collections Framework with a neat Low K2 4
diagram.
Differentiate between Arrays and
4 Collections in Java in terms of Low K2 4
flexibility and performance.
Write a Java program that
demonstrates basic operations on a
5 Medium K3 5
Collection using an ArrayList (add,
remove, iterate).
Write a Java program to store a list of
student names using the Collection
6 Medium K3 5
interface and display them using an
iterator.
Analyze how the Collection interface
supports data abstraction and
7 Medium K4 8
uniform handling of different data
structures in Java.
Evaluate the importance of the
Collection interface as the root of the
Collections Framework. Illustrate
8 (a) Medium K4 8
with an example that uses
polymorphism with different
collection types.
Design a Java program that uses the
Collection interface to manage a list
OR 8 (b) of products in an inventory system, Medium K4
supporting add, search, and delete
operations.
Case/Scenario-Based Question: You
are developing an Employee
Management System where you
need to store, update, and delete
9 employee records dynamically. (a) High K5 10
Identify how the Collection interface
and its implementations can be used.
(b) Write a Java program that
demonstrates basic operations using
a suitable collection. (c) Justify how
Question
Question Text Cognitive Level BL Marks
No
the Collections Framework simplifies
data management and scalability.
Case/Scenario-Based Question: In
an Online Shopping Application,
the product catalog must allow
dynamic addition and removal of
products. (a) Choose an
appropriate collection type for this
OR 9 purpose. (b) Implement a Java High K5
program demonstrating the use of
the Collection interface for
managing products. (c) Evaluate
the advantages of using Java
Collections Framework over
traditional arrays.
Question
Question Text Cognitive Level BL Marks
No
Define the List interface in Java.
1 How is it different from the Low K1 3
Collection interface?
What are the major classes that
implement the List interface in
2 Low K1 3
Java? Mention any two key
differences among them.
Explain the internal working
3 mechanism of ArrayList and Low K2 4
LinkedList in Java.
Differentiate between Vector and
4 Stack classes in Java with suitable Low K2 4
examples.
Write a Java program to
5 demonstrate basic operations (add, Medium K3 5
remove, iterate) on an ArrayList.
6 Write a Java program to implement Medium K3 5
a stack using the Stack class and
Question
Question Text Cognitive Level BL Marks
No
demonstrate push, pop, and peek
operations.
Analyze the performance trade-offs
between ArrayList and LinkedList
7 Medium K4 8
for insertion, deletion, and search
operations.
Evaluate the use of Vector and Stack
in multithreaded applications.
8 (a) Medium K4 8
Provide a Java example to
demonstrate thread safety.
Design a Java application to manage
a list of books using both ArrayList
OR 8 (b) and LinkedList. Compare their Medium K4
performance for insertion and
retrieval operations.
Case/Scenario-Based Question:
You are designing an Online Order
Management System where orders
are processed in sequence and
stored dynamically. (a) Choose a
suitable List implementation for this
9 High K5 10
scenario and justify your choice. (b)
Write a Java code snippet
demonstrating the required
functionality. (c) Analyze how using
the List interface improves
scalability and maintainability.
Case/Scenario-Based Question:
Develop a Task Scheduler
Application where tasks are stored
in a stack-like structure and
executed in reverse order (LIFO). (a)
OR 9 Select an appropriate List High K5
implementation. (b) Implement the
functionality in Java using the Stack
class. (c) Evaluate the significance of
Stack and Vector synchronization in
concurrent environments.
Question
Question Text Cognitive Level BL Marks
No
Define the Queue interface in Java.
1 Low K1 3
What is its primary purpose?
What is the difference between
2 Queue and Deque interfaces in Low K1 3
Java?
Explain how the LinkedList class
3 implements the Queue and Deque Low K2 4
interfaces.
Differentiate between FIFO and
LIFO order with respect to Queue
4 Low K2 4
and Deque operations. Provide
examples.
Write a Java program to implement
a simple Queue using the
5 Medium K3 5
LinkedList class. Perform enqueue
and dequeue operations.
Write a Java program to
demonstrate the working of a
6 Deque using LinkedList, including Medium K3 5
insertion and deletion from both
ends.
Analyze the advantages of using
LinkedList as an implementation of
7 Medium K4 8
Queue and Deque compared to
ArrayDeque.
Evaluate how exception handling
can be incorporated while
8 (a) performing operations on a Queue Medium K4 8
implemented via LinkedList.
Illustrate with a Java example.
Design a Java program for a Customer
Service System that maintains
OR 8 (b) customers in a queue using Medium K4
LinkedList. Implement operations like
add, remove, and peek.
9 Case/Scenario-Based Question: High K5 10
You are designing a Print Spooling
Question
Question Text Cognitive Level BL Marks
No
System where print jobs are
managed using a queue structure.
(a) Identify an appropriate Java
collection class to represent the
queue. (b) Write a Java program
using LinkedList to add, process,
and remove print jobs. (c) Justify
how the queue model ensures
fairness and efficiency.
Case/Scenario-Based Question: In a
Ticket Booking System, priority
requests should be handled first
using a Deque implemented with
LinkedList. (a) Design the class
structure and demonstrate
OR 9 High K5
insertion/removal from both ends.
(b) Write a Java code snippet to
illustrate the implementation. (c)
Evaluate how using Deque enhances
performance in such real-world
applications.
Question
Question Text Cognitive Level BL Marks
No
Define the Set interface in Java. How
1 Low K1 3
does it differ from the List interface?
What are the main implementations
2 of the Set interface in Java? Mention Low K1 3
the key characteristics of each.
Explain how HashSet,
3 LinkedHashSet, and TreeSet store Low K2 4
elements internally.
Differentiate between HashSet and
4 TreeSet in terms of ordering, Low K2 4
performance, and null handling.
5 Write a Java program to Medium K3 5
demonstrate the use of HashSet for
Question
Question Text Cognitive Level BL Marks
No
removing duplicate elements from a
list of integers.
Write a Java program to compare
insertion order and output of
6 Medium K3 5
HashSet and LinkedHashSet using a
set of string elements.
Analyze how the TreeSet ensures
sorted order and uniqueness of
7 Medium K4 8
elements. What are its advantages
and limitations?
Evaluate the significance of
choosing an appropriate Set
implementation (HashSet,
8 (a) Medium K4 8
LinkedHashSet, or TreeSet) based on
application requirements. Illustrate
with an example.
Design a Java program to store and
display student names using all
OR 8 (b) three types of Set implementations. Medium K4
Compare the output and
performance of each.
Case/Scenario-Based Question: You
are developing an Online
Registration System that stores
unique user IDs. The order of
registration should be maintained,
and duplicate IDs should be
9 High K5 10
avoided. (a) Identify the most
suitable Set implementation for this
use case. (b) Write Java code
demonstrating the implementation.
(c) Justify your choice in terms of
performance and data consistency.
Case/Scenario-Based Question: In a
Library Management System, books
OR 9 are to be stored without duplication High K5
and displayed in sorted order by
title. (a) Choose the appropriate Set
implementation. (b) Write a Java
Question
Question Text Cognitive Level BL Marks
No
program to demonstrate the
insertion and display of books. (c)
Evaluate how TreeSet simplifies
maintaining sorted data collections.
Question
Question Text Cognitive Level BL Marks
No
Define the Map interface in Java.
1 How does it differ from the Low K1 3
Collection interface?
What are the major classes that
2 implement the Map interface in Low K1 3
Java? Give one key feature of each.
Explain the internal working
3 mechanism of HashMap and how it Low K2 4
stores key-value pairs.
Differentiate between HashMap,
LinkedHashMap, and TreeMap in
4 Low K2 4
terms of ordering, performance, and
null handling.
Write a Java program to
demonstrate the use of HashMap
5 Medium K3 5
for storing and retrieving student roll
numbers and names.
Write a Java program to compare
6 the insertion order preservation in Medium K3 5
HashMap and LinkedHashMap.
Analyze how TreeMap maintains
7 sorted order of keys. What are the Medium K4 8
trade-offs compared to HashMap?
Evaluate how choosing between
HashMap, LinkedHashMap, and
8 (a) TreeMap affects program efficiency Medium K4 8
and design flexibility. Support your
explanation with an example.
Question
Question Text Cognitive Level BL Marks
No
Design a Java program to store
product IDs and prices using all
OR 8 (b) three types of maps. Compare their Medium K4
outputs and explain differences in
order and performance.
Case/Scenario-Based Question: You
are building a Student Management
System that stores student IDs as
keys and names as values. The
system should display records in
9 sorted order by ID. (a) Select the High K5 10
most appropriate Map
implementation. (b) Write Java code
to implement the system. (c) Justify
your selection based on efficiency
and ordering behavior.
Case/Scenario-Based Question: In
an E-Commerce Application, you
need to maintain product details
where insertion order must be
preserved, and duplicate keys are
not allowed. (a) Choose a suitable
OR 9 Map implementation and justify High K5
your choice. (b) Write Java code to
demonstrate adding, retrieving, and
iterating over key-value pairs. (c)
Evaluate how using the Map
interface simplifies data access and
management.
Question
Question Text Cognitive Level BL Marks
No
Define wrapper classes in Java. Why
1 Low K1 3
are they needed?
What is Java Generics? How does it
2 Low K1 3
improve type safety?
Explain autoboxing and unboxing
3 Low K2 4
with suitable examples in Java.
Question
Question Text Cognitive Level BL Marks
No
Differentiate between primitive
data types and their corresponding
4 Low K2 4
wrapper classes. Provide a
comparison table.
Write a Java program that
demonstrates autoboxing and
5 Medium K3 5
unboxing with Integer and Double
wrapper classes.
Write a Java program to
demonstrate the use of Generics
6 Medium K3 5
with an ArrayList to store and
display integer values.
Analyze the importance of Generics
in Java Collections Framework. How
7 Medium K4 8
do they help prevent runtime
errors?
Evaluate how Generics improve
code reusability and type safety in
8 (a) Java. Support your answer with an Medium K4 8
example using a generic class or
method.
Design a Java program that uses a
generic class Box<T> to store and
OR 8 (b) display objects of various types Medium K4
(Integer, String, Double). Explain
how Generics provide flexibility.
Case/Scenario-Based Question:
You are developing a Student Result
Management System that requires
storing marks using wrapper classes
and Generics to ensure type safety.
9 (a) Identify where wrapper classes High K5 10
and Generics can be used. (b) Write
a Java code snippet implementing
both concepts. (c) Justify how the
use of Generics improves code
quality and reduces runtime errors.
OR 9 Case/Scenario-Based Question: In a High K5
Shopping Cart Application, various
Question
Question Text Cognitive Level BL Marks
No
product prices (integers, floats,
doubles) are to be handled
uniformly using wrapper classes and
Generics. (a) Design an appropriate
generic class. (b) Write Java code
demonstrating autoboxing,
unboxing, and type-safe storage
using Generics. (c) Evaluate how
these features enhance reusability
and robustness.
Question
Question Text Cognitive Level BL Marks
No
Define a generic class in Java. What
1 Low K1 3
is its main purpose?
What is a generic method? How
2 Low K1 3
does it differ from a generic class?
Explain the advantages of using
3 generic classes and methods in Java Low K2 4
programs.
Differentiate between bounded and
4 unbounded type parameters in Low K2 4
generic methods. Provide examples.
Write a Java program to create a
5 generic class Box<T> that stores and Medium K3 5
displays objects of any type.
Write a Java program to implement
a generic method printArray() that
6 Medium K3 5
prints elements of different array
types (Integer, Double, Character).
Analyze how type erasure affects the
7 implementation and runtime Medium K4 8
behavior of generic classes in Java.
Evaluate the use of bounded type
8 (a) parameters in enhancing type safety Medium K4 8
in generic methods. Demonstrate
Question
Question Text Cognitive Level BL Marks
No
with a Java example using <T
extends Number>.
Design a Java program with a
generic class Pair<K, V> to store key-
OR 8 (b) value pairs and demonstrate a Medium K4
generic method that compares two
pairs for equality.
Case/Scenario-Based Question: You
are developing a Data Processing
Application where multiple types of
data (Integer, Double, String) must
be handled uniformly. (a) Identify
9 where generic classes and methods High K5 10
can be applied. (b) Write a Java code
implementing both concepts. (c)
Justify how Generics improve
reusability, flexibility, and type
safety in your design.
Case/Scenario-Based Question: In
a Banking System, you need to
manage transactions involving
different numeric types. Design a
generic method calculateTotal() to
handle all numeric data types safely.
OR 9 (a) Write the generic method with High K5
an appropriate type bound. (b)
Implement a Java program
demonstrating the concept. (c)
Evaluate how generic classes and
methods contribute to code
generalization and maintainability.
Question
Question Text Cognitive Level BL Marks
No
Define a generic collection in Java.
1 Why are Generics used with Low K1 3
collections?
Question
Question Text Cognitive Level BL Marks
No
What is the difference between a
2 non-generic collection and a generic Low K1 3
collection in Java?
Explain how Generics enhance type
3 safety and eliminate the need for Low K2 4
typecasting in Java Collections.
Differentiate between
ArrayList<Integer> and
4 Low K2 4
ArrayList<Object> in terms of type
safety and flexibility.
Write a Java program using a generic
5 ArrayList to store and display a list of Medium K3 5
employee names.
Write a Java program to demonstrate
the use of a generic
6 HashMap<Integer, String> to store Medium K3 5
and retrieve student roll numbers and
names.
Analyze how generic collections
simplify code reusability and reduce
7 Medium K4 8
runtime errors compared to legacy
collections.
Evaluate the role of Generics in the
Java Collections Framework by
illustrating how generic types
8 (a) Medium K4 8
improve performance and
maintainability. Support your answer
with a program.
Design a Java program that uses a
generic LinkedList<T> to store
OR 8 (b) objects of different types using Medium K4
Generics. Compare this with using
a raw LinkedList.
Case/Scenario-Based Question: You
are building an E-Learning Platform
9 that stores course information High K5 10
(course IDs and names) using Java
Collections. (a) Identify suitable
Question
Question Text Cognitive Level BL Marks
No
generic collection types for storing
and retrieving data. (b) Write a Java
program using Generics for this
implementation. (c) Justify how
generic collections improve
scalability and data consistency.
Case/Scenario-Based Question: In
a Hospital Management System,
you need to maintain lists of
patients, doctors, and
appointments using generic
collections. (a) Select the most
appropriate generic collections for
OR 9 High K5
these entities. (b) Write a Java
program to demonstrate data
storage and retrieval using
Generics. (c) Evaluate how using
generic collections enhances
modularity and reduces type
errors.
Question
Question Text Cognitive Level BL Marks
No
Define the role of Generics in solving
1 problems related to type safety in Low K1 3
Java Collections.
What are the main benefits of using
2 Collections with Generics in Java Low K1 3
program development?
Explain how type parameters
improve the flexibility and reliability
3 Low K2 4
of Java Collections with suitable
examples.
Differentiate between using raw
collections and generic collections
4 Low K2 4
for problem-solving in Java. Provide
an example illustrating type safety.
Question
Question Text Cognitive Level BL Marks
No
Write a Java program using a generic
5 ArrayList to store student names and Medium K3 5
sort them in ascending order.
Write a Java program using a generic
HashMap<Integer, String> to store
6 and retrieve employee IDs and Medium K3 5
names, then iterate through the map
using Generics.
Analyze how combining Collections
and Generics enhances performance
and reduces redundancy in
7 Medium K4 8
application design. Support your
answer with a conceptual
explanation.
Evaluate the effectiveness of
Generics in handling heterogeneous
8 (a) data structures using Java Medium K4 8
Collections. Illustrate with a real-
world example.
Design a Java program using
Generics and Collections to
implement an inventory
OR 8 (b) Medium K4
management system where
products are stored, retrieved, and
displayed efficiently.
Case/Scenario-Based Question: You
are developing a Bank Transaction
Management System. The system
must maintain a list of transactions
(deposit, withdrawal) and use
Generics for type-safe data
management. (a) Choose
9 appropriate Collection types and High K5 10
justify your choice. (b) Write Java
code demonstrating data storage,
retrieval, and iteration using
Generics. (c) Evaluate how
Collections with Generics enhance
system scalability and
maintainability.
Question
Question Text Cognitive Level BL Marks
No
Case/Scenario-Based Question: In
a Library Database Application,
you must handle lists of books,
borrowers, and issued records
using Java Collections and
Generics. (a) Identify the
OR 9 appropriate Collections and explain High K5
your reasoning. (b) Write a Java
program to demonstrate the
implementation. (c) Analyze how
problem-solving becomes easier
with Generics compared to non-
generic collections.
Question Paper Content (Unit: Multithreading in Java)
Q1. (Low | K1 | CO3 | 5 Marks)
Define a thread in Java. List any four advantages of multithreading in Java applications.
Q2. (Low | K2 | CO3 | 5 Marks)
Differentiate between a process and a thread in Java.
(Write any five points of difference.)
Q3. (Low | K2 | CO3 | 5 Marks)
Explain the Thread Life Cycle in Java with the help of a neat and labelled diagram.
Q4. (Medium | K3 | CO3 | 7 Marks)
Write a Java program to create a thread by extending the Thread class.
Explain the role of the start() and run() methods in the execution of the thread.
Q5. (Medium | K4 | CO3 | 7 Marks)
Analyze the following situation and answer the questions that follow:
A Java application creates multiple threads to perform background tasks.
a) Explain how thread priority influences thread scheduling in Java.
b) What are the minimum, normal, and maximum priority values in Java?
c) What happens if two threads have the same priority?
Q6. (Medium | K4 | CO3 | 7 Marks)
Consider a multithreaded Java program where one thread is waiting for another thread to complete
its execution.
a) Identify the thread state of the waiting thread.
b) Explain how the join() method works in this context.
c) Discuss one real-world scenario where such behavior is required.
Q7. (High | K5/K6 | CO3 | 14 Marks)
A banking application uses multiple threads to handle user transactions, interest calculation, and log
generation concurrently.
a) Design a Java program using multiple threads to simulate this scenario.
b) Assign appropriate thread priorities and justify your choices.
c) Analyze how improper priority assignment can lead to thread starvation.
OR
Q7. (High | K5/K6 | CO3 | 14 Marks)
A real-time chat server uses multithreading to manage thousands of client connections.
a) Evaluate the importance of the thread lifecycle in managing system resources.
b) Propose a thread-based design using Java threads to handle client requests.
c) Critically examine the limitations of relying solely on thread priority for thread scheduling in Java.
Question Paper Content (Topic: Creating Threads in Java)
Q1. (Low | K1 | CO3 | 5 Marks)
Define a thread in Java. Name the two standard approaches used to create threads in Java.
Q2. (Low | K2 | CO3 | 5 Marks)
Explain the steps involved in creating a thread using the Runnable interface in Java.
Q3. (Low | K2 | CO3 | 5 Marks)
Differentiate between creating a thread by extending the Thread class and implementing the
Runnable interface.
(Write any five points.)
Q4. (Medium | K3 | CO3 | 7 Marks)
Write a Java program to create a thread by implementing the Runnable interface.
Explain how the thread execution starts in this approach.
Q5. (Medium | K4 | CO3 | 7 Marks)
Analyze the following scenario:
A Java application needs to perform background tasks while also extending another class.
a) Which thread creation approach should be preferred in this case?
b) Justify your choice with technical reasons.
c) Explain how this approach improves design flexibility.
Q6. (Medium | K4 | CO3 | 7 Marks)
Consider a Java program where multiple threads are created using the Thread class.
a) Explain the role of the run() and start() methods.
b) What will happen if the run() method is called directly instead of start()?
c) Analyze the impact on concurrency.
Q7. (High | K5/K6 | CO3 | 14 Marks)
A university management system uses multiple threads to handle student registration, fee payment,
and report generation.
a) Design a Java program using both Runnable interface and Thread class to simulate this system.
b) Evaluate the advantages of using the Runnable interface over the Thread class in large-scale
applications.
c) Propose best practices for selecting an appropriate thread creation mechanism.
OR
Q7. (High | K5/K6 | CO3 | 14 Marks)
A real-time data processing application must execute multiple tasks concurrently while ensuring
better resource utilization.
a) Compare the performance and design implications of using Runnable vs Thread.
b) Develop a multithreaded Java solution using the Runnable interface.
c) Critically analyze why modern Java applications prefer Runnable (or Callable) over extending the
Thread class.
**Question Paper Content
(Unit: Thread Synchronization & Inter-Thread Communication in Java)**
Q1. (Low | K1 | CO3 | 5 Marks)
Define thread synchronization in Java. State any four problems that may occur in the absence of
synchronization.
Q2. (Low | K2 | CO3 | 5 Marks)
Explain the concept of inter-thread communication in Java. Name the methods used to achieve it.
Q3. (Low | K2 | CO3 | 5 Marks)
Differentiate between the following synchronization techniques in Java:
a) Synchronized method
b) Synchronized block
(Write any five points of difference.)
Q4. (Medium | K3 | CO3 | 7 Marks)
Write a Java program to demonstrate method-level synchronization using the synchronized
keyword.
Explain how synchronization ensures data consistency in a multithreaded environment.
Q5. (Medium | K4 | CO3 | 7 Marks)
Analyze the following scenario:
A shared printer resource is accessed by multiple threads simultaneously.
a) Identify the critical section in this scenario.
b) Explain how a synchronized block can be used to protect the critical section.
c) Justify why synchronized blocks are preferred over synchronized methods in performance-critical
applications.
Q6. (Medium | K4 | CO3 | 7 Marks)
Consider a producer-consumer problem implemented using Java threads.
a) Explain how the wait() and notify() methods facilitate inter-thread communication.
b) Identify the thread states involved during execution.
c) Analyze the consequences of calling wait() without acquiring a lock.
Q7. (High | K5/K6 | CO3 | 14 Marks)
A banking system has multiple threads performing deposit and withdrawal operations on a shared
account object.
a) Design a Java program that ensures thread-safe access using appropriate synchronization
techniques.
b) Evaluate the use of wait(), notify(), or notifyAll() for handling insufficient balance scenarios.
c) Critically analyze the risk of deadlock and starvation in synchronized multithreaded applications.
OR
Q7. (High | K5/K6 | CO3 | 14 Marks)
A real-time order processing system uses multiple threads to manage inventory updates and order
confirmations.
a) Propose a synchronization strategy to avoid race conditions.
b) Develop a Java-based solution demonstrating inter-thread communication.
c) Assess the limitations of intrinsic locks (synchronized) and justify when explicit locks
(ReentrantLock) should be used.
**Question Paper Content
(Unit: Multithreading Case Studies in Java)**
Q1. (Low | K1 | CO3 | 5 Marks)
Define multithreading in Java. State any four real-world applications where multithreading is
commonly used.
Q2. (Low | K2 | CO3 | 5 Marks)
Explain the role of threads in client–server applications with reference to Java-based systems.
Q3. (Low | K2 | CO3 | 5 Marks)
List and briefly explain any five challenges faced while designing multithreaded Java applications.
Q4. (Medium | K3 | CO3 | 7 Marks)
Case Study 1: File Download Manager
A Java application downloads multiple files simultaneously.
a) Identify how multithreading improves the performance of the application.
b) Write a Java code snippet demonstrating thread creation for parallel downloads.
c) Explain how thread lifecycle management is important in this scenario.
Q5. (Medium | K4 | CO3 | 7 Marks)
Case Study 2: Online Ticket Booking System
Multiple users try to book tickets at the same time.
a) Identify the shared resource in this case study.
b) Analyze the consequences of not using synchronization.
c) Propose a suitable synchronization technique to handle this scenario.
Q6. (Medium | K4 | CO3 | 7 Marks)
Case Study 3: Producer–Consumer System
A producer thread generates data while a consumer thread processes it.
a) Analyze the need for inter-thread communication in this system.
b) Explain how wait() and notify() methods coordinate producer and consumer threads.
c) Identify potential issues if communication is not properly handled.
Q7. (High | K5/K6 | CO3 | 14 Marks)
Case Study 4: Banking Transaction Processing System
A banking application performs concurrent deposit, withdrawal, interest calculation, and transaction
logging.
a) Design a multithreaded Java solution for the above scenario.
b) Evaluate the choice of synchronization mechanisms used.
c) Critically analyze how deadlock, starvation, and race conditions can be prevented.
OR
Q7. (High | K5/K6 | CO3 | 14 Marks)
Case Study 5: E-Commerce Order Processing System
An e-commerce platform processes orders, updates inventory, and generates invoices concurrently.
a) Propose a thread-based architecture using Java.
b) Assess the importance of thread priority and thread pooling in this system.
c) Justify the use of advanced concurrency utilities (ExecutorService, BlockingQueue) over basic
threads.
**Question Paper Content
(Unit: JDBC API, Architecture & JDBC Drivers)**
Q1. (Low | K1 | CO3 | 5 Marks)
Define JDBC (Java Database Connectivity). State any four advantages of using JDBC in Java
applications.
Q2. (Low | K2 | CO3 | 5 Marks)
Explain the JDBC architecture with the help of a neat and labelled diagram.
Q3. (Low | K2 | CO3 | 5 Marks)
List and briefly explain the four types of JDBC drivers.
Q4. (Medium | K3 | CO3 | 7 Marks)
Write the steps involved in establishing a JDBC connection in a Java application.
Explain the role of the DriverManager and Connection interfaces.
Q5. (Medium | K4 | CO3 | 7 Marks)
Analyze the following scenario:
A Java-based enterprise application needs to interact with multiple relational databases.
a) Evaluate the suitability of Type 4 JDBC drivers for this application.
b) Compare Type 1 and Type 4 JDBC drivers in terms of performance and portability.
c) Justify your choice of driver type.
Q6. (Medium | K4 | CO3 | 7 Marks)
Consider a web application that uses JDBC for database connectivity.
a) Explain how JDBC fits into a three-tier architecture.
b) Analyze the responsibilities of each tier.
c) Identify the security benefits of this architectural approach.
Q7. (High | K5/K6 | CO3 | 14 Marks)
A university management system uses JDBC to manage student records stored in a relational
database.
a) Design a JDBC-based solution illustrating the complete JDBC architecture.
b) Evaluate different JDBC driver types and recommend the most suitable one.
c) Critically analyze the challenges involved in JDBC-based database connectivity.
OR
Q7. (High | K5/K6 | CO3 | 14 Marks)
A financial reporting application requires high-performance and secure database access using Java.
a) Propose a JDBC architecture suitable for this application.
b) Assess the impact of JDBC driver selection on application performance.
c) Justify why Type 4 drivers are preferred in modern enterprise applications.
**Question Paper Content
(Unit: Establishing Database Connectivity using JDBC)**
Q1. (Low | K1 | CO3 | 5 Marks)
Define JDBC. List the core JDBC interfaces/classes required to establish a database connection in
Java.
Q2. (Low | K2 | CO3 | 5 Marks)
Explain the steps involved in establishing a database connection using JDBC in Java.
Q3. (Low | K2 | CO3 | 5 Marks)
Differentiate between Statement, PreparedStatement, and CallableStatement.
(Write any five points.)
Q4. (Medium | K3 | CO3 | 7 Marks)
Write a Java program to establish a connection with a MySQL database using JDBC and display a
confirmation message on successful connection.
(Assume appropriate database credentials.)
Q5. (Medium | K4 | CO3 | 7 Marks)
Analyze the following scenario:
A Java application frequently executes SQL queries with dynamic input values.
a) Identify the most suitable JDBC statement type for this scenario.
b) Justify your choice with respect to performance and security.
c) Explain how this approach helps in preventing SQL injection attacks.
Q6. (Medium | K4 | CO3 | 7 Marks)
Consider a web application that establishes JDBC connections for every client request.
a) Analyze the drawbacks of this approach.
b) Explain how connection pooling improves performance.
c) Identify one JDBC-supported solution for implementing connection pooling.
Q7. (High | K5/K6 | CO3 | 14 Marks)
A hospital management system uses JDBC to connect to its backend database for patient records.
a) Design a Java-based JDBC module to establish and manage database connectivity.
b) Evaluate exception handling and resource management techniques in JDBC.
c) Critically analyze best practices for secure and efficient database connectivity.
OR
Q7. (High | K5/K6 | CO3 | 14 Marks)
A high-traffic e-commerce application relies on JDBC for database operations.
a) Propose a scalable JDBC connectivity architecture.
b) Assess the role of connection pooling and prepared statements in performance optimization.
c) Justify the use of try-with-resources for JDBC resource management.
**Question Paper Content
(Unit: CRUD Operations using PreparedStatement & CallableStatement)**
Q1. (Low | K1 | CO3 | 5 Marks)
Define CRUD operations in the context of JDBC. List the JDBC interfaces used to perform CRUD
operations in Java.
Q2. (Low | K2 | CO3 | 5 Marks)
Explain the working of PreparedStatement in Java. How does it differ from Statement?
Q3. (Low | K2 | CO3 | 5 Marks)
Explain the purpose of CallableStatement in JDBC. List the steps involved in executing a stored
procedure using CallableStatement.
Q4. (Medium | K3 | CO3 | 7 Marks)
Write a Java program to perform the following CRUD operations using PreparedStatement:
a) Insert a new record
b) Update an existing record
(Assume suitable table structure and database details.)
Q5. (Medium | K4 | CO3 | 7 Marks)
Analyze the following scenario:
A Java application performs frequent insert and update operations with user-supplied data.
a) Justify why PreparedStatement is preferred over Statement.
b) Analyze its impact on performance and security.
c) Explain how it helps in preventing SQL injection.
Q6. (Medium | K4 | CO3 | 7 Marks)
Consider a database system where business logic is implemented using stored procedures.
a) Explain how CallableStatement supports stored procedure execution.
b) Demonstrate how IN, OUT, and INOUT parameters are handled.
c) Analyze the advantages of using stored procedures in enterprise applications.
Q7. (High | K5/K6 | CO3 | 14 Marks)
A university management system uses JDBC to manage student records.
a) Design a Java program to perform Create, Read, Update, and Delete operations using
PreparedStatement.
b) Extend the design to invoke a stored procedure using CallableStatement for generating student
performance reports.
c) Critically analyze the trade-offs between using PreparedStatement and CallableStatement.
OR
Q7. (High | K5/K6 | CO3 | 14 Marks)
A banking application uses JDBC to manage account transactions and reporting.
a) Propose a JDBC-based solution using PreparedStatement for transaction processing.
b) Design a stored procedure and invoke it using CallableStatement for monthly account summaries.
c) Evaluate performance, maintainability, and security aspects of the solution.
**Question Paper Content
(Unit: JDBC Transaction Management – Commit & Rollback)**
Q1. (Low | K1 | CO3 | 5 Marks)
Define a database transaction in JDBC. State the ACID properties of a transaction.
Q2. (Low | K2 | CO3 | 5 Marks)
Explain the role of commit() and rollback() methods in JDBC transaction management.
Q3. (Low | K2 | CO3 | 5 Marks)
What is auto-commit mode in JDBC? Explain how it can be enabled and disabled in Java.
Q4. (Medium | K3 | CO3 | 7 Marks)
Write a Java program to demonstrate manual transaction management using JDBC.
The program should perform multiple database operations and use commit() and rollback()
appropriately.
Q5. (Medium | K4 | CO3 | 7 Marks)
Analyze the following scenario:
A banking application performs fund transfer between two accounts.
a) Identify the transaction boundaries involved.
b) Explain how commit() and rollback() ensure data consistency.
c) Analyze the consequences of a system failure occurring between two database operations.
Q6. (Medium | K4 | CO3 | 7 Marks)
Consider a Java application interacting with a database that may throw runtime exceptions during
execution.
a) Explain the importance of exception handling in JDBC transactions.
b) Analyze how improper transaction handling can lead to partial updates.
c) Propose best practices for reliable transaction management.
Q7. (High | K5/K6 | CO3 | 14 Marks)
A university fee management system uses JDBC to process student fee payments.
a) Design a JDBC-based solution to handle fee transactions using manual commit control.
b) Evaluate the use of rollback() in handling payment failures.
c) Critically analyze how transaction isolation and consistency can be ensured in concurrent
environments.
OR
Q7. (High | K5/K6 | CO3 | 14 Marks)
An e-commerce application processes customer orders and payment details using JDBC.
a) Propose a transaction management strategy using commit() and rollback().
b) Design a Java program snippet demonstrating the strategy.
c) Assess the impact of improper transaction handling on data integrity and system reliability.
**Question Paper Content
(Unit: ResultSet Handling & Practical JDBC Exercises)**
Q1. (Low | K1 | CO3 | 5 Marks)
Define ResultSet in JDBC. List the different types of ResultSet supported in Java.
Q2. (Low | K2 | CO3 | 5 Marks)
Explain the various methods of the ResultSet interface used for data retrieval and navigation.
Q3. (Low | K2 | CO3 | 5 Marks)
Differentiate between the following types of ResultSet:
a) TYPE_FORWARD_ONLY
b) TYPE_SCROLL_INSENSITIVE
c) TYPE_SCROLL_SENSITIVE
(Write any five points.)
Q4. (Medium | K3 | CO3 | 7 Marks)
Write a Java program to retrieve and display all records from a database table using ResultSet.
Demonstrate the use of next(), getInt(), and getString() methods.
Q5. (Medium | K4 | CO3 | 7 Marks)
Analyze the following scenario:
A Java application needs to navigate through query results multiple times without reflecting database
changes.
a) Identify the most suitable ResultSet type.
b) Justify your choice.
c) Explain how this choice impacts performance and consistency.
Q6. (Medium | K4 | CO3 | 7 Marks)
Consider a JDBC application that allows updating database records through a ResultSet.
a) Explain the concept of an updatable ResultSet.
b) Describe the steps involved in updating records using ResultSet.
c) Analyze the limitations of using updatable ResultSets.
Q7. (High | K5/K6 | CO3 | 14 Marks)
A university management system uses JDBC to display and update student records.
a) Design a Java program that retrieves student data using an appropriate ResultSet type.
b) Extend the program to allow updating records using ResultSet methods.
c) Critically analyze best practices for efficient and secure ResultSet handling.
OR
Q7. (High | K5/K6 | CO3 | 14 Marks)
A reporting module in an enterprise application generates analytical reports from large datasets.
a) Propose an efficient ResultSet handling strategy.
b) Develop a Java-based solution demonstrating scrollable ResultSet navigation.
c) Evaluate the trade-offs between different ResultSet types in high-volume data processing.
**Question Paper Content
(Unit: Integrating Multithreading with Database Operations in Java)**
Q1. (Low | K1 | CO3 | 5 Marks)
Define multithreading and JDBC. Explain why integrating multithreading with database operations is
required in Java applications.
Q2. (Low | K2 | CO3 | 5 Marks)
Explain the challenges involved in performing database operations in a multithreaded environment.
Q3. (Low | K2 | CO3 | 5 Marks)
List and briefly explain any five best practices for using JDBC in multithreaded Java applications.
Q4. (Medium | K3 | CO3 | 7 Marks)
Write a Java program where multiple threads perform read operations on a database table using
JDBC.
Explain how thread safety is maintained in the program.
Q5. (Medium | K4 | CO3 | 7 Marks)
Analyze the following scenario:
A web-based application handles multiple client requests simultaneously, each performing database
updates.
a) Identify the concurrency issues that may arise.
b) Explain how connection pooling helps in handling concurrent database access.
c) Justify the use of PreparedStatement in a multithreaded environment.
Q6. (Medium | K4 | CO3 | 7 Marks)
Consider a banking application where multiple threads perform fund transfers using JDBC.
a) Analyze how transaction management (commit() and rollback()) should be handled in a
multithreaded context.
b) Explain why a single Connection object should not be shared across threads.
c) Propose a safe design approach.
Q7. (High | K5/K6 | CO3 | 14 Marks)
A hospital management system uses a multithreaded Java application to handle patient registration,
billing, and report generation using JDBC.
a) Design a multithreaded architecture integrating JDBC operations.
b) Evaluate synchronization and transaction management strategies.
c) Critically analyze performance, scalability, and data consistency concerns.
OR
Q7. (High | K5/K6 | CO3 | 14 Marks)
An e-commerce application processes thousands of orders concurrently using Java threads and JDBC.
a) Propose a robust multithreaded JDBC-based design using thread pools.
b) Develop a Java-based solution illustrating safe concurrent database access.
c) Assess common pitfalls and recommend best practices for high-concurrency systems.
**Question Paper Content
(Unit: Introduction to Java Servlets & Servlet Architecture)**
Q1. (Low | K1 | CO3 | 5 Marks)
Define a Servlet in Java. List any four advantages of using servlets over traditional CGI programs.
Q2. (Low | K2 | CO3 | 5 Marks)
Explain the Servlet Architecture with the help of a neat and labelled diagram.
Q3. (Low | K2 | CO3 | 5 Marks)
Describe the role of the following components in servlet-based applications:
a) Servlet Container
b) Servlet Interface
c) HTTP Servlet
Q4. (Medium | K3 | CO3 | 7 Marks)
Explain the Servlet Life Cycle in Java. Write a simple servlet program illustrating the life cycle
methods.
Q5. (Medium | K4 | CO3 | 7 Marks)
Analyze the following scenario:
A web application uses servlets to handle client requests.
a) Explain how a servlet processes an HTTP request and generates a response.
b) Analyze the role of the servlet container in managing servlets.
c) Justify why servlets are considered platform-independent server-side components.
Q6. (Medium | K4 | CO3 | 7 Marks)
Consider a servlet-based web application deployed on Apache Tomcat.
a) Explain the responsibilities of Tomcat as a servlet container.
b) Analyze how multithreading is handled in servlets.
c) Identify potential issues related to thread safety.
Q7. (High | K5/K6 | CO3 | 14 Marks)
An online examination system uses Java servlets to manage user authentication and exam
submissions.
a) Design a servlet-based architecture for this system.
b) Evaluate servlet life cycle and request–response handling.
c) Critically analyze scalability and security considerations.
OR
Q7. (High | K5/K6 | CO3 | 14 Marks)
A university web portal uses Java servlets as backend components.
a) Propose a servlet-based architecture with proper component interaction.
b) Assess the role of the servlet container in performance optimization.
c) Justify the use of servlets in modern enterprise web applications.
**Question Paper Content
(Unit: Servlet Lifecycle & Key Servlet APIs)**
Q1. (Low | K1 | CO3 | 5 Marks)
Define a Servlet in Java. List the life cycle methods of a servlet.
Q2. (Low | K2 | CO3 | 5 Marks)
Explain the init() method of a servlet. When and how is it invoked by the servlet container?
Q3. (Low | K2 | CO3 | 5 Marks)
Differentiate between the following servlet APIs:
a) ServletRequest vs HttpServletRequest
b) ServletResponse vs HttpServletResponse
Q4. (Medium | K3 | CO3 | 7 Marks)
Explain the complete servlet life cycle with the help of a neat and labelled diagram.
Also explain the role of service() method in request processing.
Q5. (Medium | K4 | CO3 | 7 Marks)
Analyze the following scenario:
A servlet handles both GET and POST requests from multiple clients.
a) Explain how doGet() and doPost() methods are invoked.
b) Analyze the role of HttpServletRequest in extracting client data.
c) Justify the importance of HttpServletResponse in generating dynamic responses.
Q6. (Medium | K4 | CO3 | 7 Marks)
Consider a servlet-based web application deployed on a servlet container.
a) Explain the purpose of ServletConfig and ServletContext APIs.
b) Analyze the scope and lifetime of both objects.
c) Identify real-world use cases for each.
Q7. (High | K5/K6 | CO3 | 14 Marks)
A university web portal uses servlets to manage login, registration, and result processing.
a) Design a servlet demonstrating the complete servlet lifecycle.
b) Evaluate the use of key servlet APIs (HttpServletRequest, HttpServletResponse, ServletContext).
c) Critically analyze thread safety and performance considerations.
OR
Q7. (High | K5/K6 | CO3 | 14 Marks)
A real-time web application processes thousands of HTTP requests using servlets.
a) Propose a design illustrating efficient servlet lifecycle management.
b) Assess the impact of servlet APIs on scalability and maintainability.
c) Justify best practices for handling concurrent requests in servlets.
**Question Paper Content
(Unit: Handling Requests & Responses in Java Servlets)**
Q1. (Low | K1 | CO3 | 5 Marks)
Define HTTP request and HTTP response in the context of Java servlets. List the types of HTTP
request methods supported by servlets.
Q2. (Low | K2 | CO3 | 5 Marks)
Explain how a servlet reads request parameters sent from a client. Mention relevant methods of
HttpServletRequest.
Q3. (Low | K2 | CO3 | 5 Marks)
Differentiate between the following:
a) GET vs POST requests
b) sendRedirect() vs [Link]()
Q4. (Medium | K3 | CO3 | 7 Marks)
Write a servlet program to handle a POST request and display user input data using
HttpServletRequest and HttpServletResponse.
Q5. (Medium | K4 | CO3 | 7 Marks)
Analyze the following scenario:
A servlet processes user login credentials submitted from an HTML form.
a) Explain how request parameters are retrieved and validated.
b) Analyze the role of response headers and content type.
c) Justify the use of POST method for this operation.
Q6. (Medium | K4 | CO3 | 7 Marks)
Consider a servlet-based web application that uses request forwarding and redirection.
a) Analyze when to use request forwarding and redirection.
b) Explain their impact on URL visibility and client–server interaction.
c) Identify performance and security considerations.
Q7. (High | K5/K6 | CO3 | 14 Marks)
An online shopping application uses servlets to manage product search and order processing.
a) Design a servlet to handle search requests and generate dynamic responses.
b) Evaluate request–response handling techniques used.
c) Critically analyze error handling and user experience considerations.
OR
Q7. (High | K5/K6 | CO3 | 14 Marks)
A university web portal handles multiple types of user requests using servlets.
a) Propose a request–response handling strategy using servlets.
b) Assess the use of request attributes, headers, and response status codes.
c) Justify best practices for secure and efficient request processing.
**Question Paper Content
(Unit: Form Data Handling & Servlet Initialization APIs)**
Q1. (Low | K1 | CO3 | 5 Marks)
Define form data in the context of Java servlets. List the methods used to read form data from
HttpServletRequest.
Q2. (Low | K2 | CO3 | 5 Marks)
Explain the purpose of the init() method in a servlet. When is it invoked by the servlet container?
Q3. (Low | K2 | CO3 | 5 Marks)
Differentiate between ServletConfig and ServletContext.
(Write any five points.)
Q4. (Medium | K3 | CO3 | 7 Marks)
Write a servlet program to read form data submitted using the POST method and display the values.
Also demonstrate the use of init() method for initialization.
Q5. (Medium | K4 | CO3 | 7 Marks)
Analyze the following scenario:
A web application needs to read database configuration parameters during servlet initialization.
a) Identify whether ServletConfig or ServletContext should be used.
b) Justify your choice.
c) Explain how initialization parameters are accessed.
Q6. (Medium | K4 | CO3 | 7 Marks)
Consider a web application consisting of multiple servlets.
a) Explain how ServletContext enables data sharing among servlets.
b) Analyze the scope and lifetime of ServletContext attributes.
c) Identify real-world use cases where this mechanism is required.
Q7. (High | K5/K6 | CO3 | 14 Marks)
A university admission portal uses servlets to process student registration forms.
a) Design a servlet that reads form data and initializes resources using init().
b) Evaluate the use of ServletConfig and ServletContext for configuration management.
c) Critically analyze performance, scalability, and maintainability considerations.
OR
Q7. (High | K5/K6 | CO3 | 14 Marks)
An enterprise web application uses multiple servlets to manage user sessions and shared resources.
a) Propose a design using ServletContext for shared initialization data.
b) Develop a servlet-based solution for form data handling.
c) Assess best practices for servlet initialization and configuration.
**Question Paper Content
(Unit: Servlet Communication Techniques in Java)**
Q1. (Low | K1 | CO3 | 5 Marks)
Define servlet communication. List the methods used in Java servlets to communicate between web
resources.
Q2. (Low | K2 | CO3 | 5 Marks)
Explain the working of the sendRedirect() method. How does it differ from request forwarding?
Q3. (Low | K2 | CO3 | 5 Marks)
Differentiate between the following servlet communication techniques:
a) forward() vs include()
b) Client-side redirect vs Server-side forward
Q4. (Medium | K3 | CO3 | 7 Marks)
Write a Java servlet program to demonstrate request forwarding using the
[Link]() method.
Q5. (Medium | K4 | CO3 | 7 Marks)
Analyze the following scenario:
A servlet validates user login credentials and forwards the request to another servlet on successful
authentication.
a) Identify the suitable communication method.
b) Justify why this method is preferred.
c) Analyze its impact on performance and URL visibility.
Q6. (Medium | K4 | CO3 | 7 Marks)
Consider a web application where a common header and footer are required on multiple pages.
a) Identify the suitable servlet communication method.
b) Explain how the include() method works.
c) Analyze its benefits in terms of modularity and maintenance.
Q7. (High | K5/K6 | CO3 | 14 Marks)
An online shopping application uses multiple servlets for product browsing, cart management, and
payment processing.
a) Design a servlet-based communication flow using sendRedirect(), forward(), and include().
b) Evaluate the advantages and limitations of each method.
c) Critically analyze security and performance considerations.
OR
Q7. (High | K5/K6 | CO3 | 14 Marks)
A university web portal integrates multiple servlets and JSP pages.
a) Propose an efficient servlet communication strategy.
b) Assess the use of redirect and forward mechanisms.
c) Justify best practices for request flow management.
**Question Paper Content
(Unit: Session Management in Java Servlets)**
Q1. (Low | K1 | CO3 | 5 Marks)
Define session management in Java servlets. List the different session tracking techniques used in
web applications.
Q2. (Low | K2 | CO3 | 5 Marks)
Explain the working of HttpSession in Java servlets. How is a session created and retrieved?
Q3. (Low | K2 | CO3 | 5 Marks)
Differentiate between the following session tracking techniques:
a) Cookies vs URL Rewriting
b) HttpSession vs Hidden Form Fields
Q4. (Medium | K3 | CO3 | 7 Marks)
Write a Java servlet program to demonstrate session creation and attribute management using
HttpSession.
Q5. (Medium | K4 | CO3 | 7 Marks)
Analyze the following scenario:
An online shopping cart application needs to maintain user state across multiple requests.
a) Identify the most suitable session tracking technique.
b) Justify your choice.
c) Explain how session attributes are stored and retrieved.
Q6. (Medium | K4 | CO3 | 7 Marks)
Consider a web application that requires proper session termination after user logout.
a) Explain different ways to destroy a session in servlets.
b) Analyze the role of invalidate() method.
c) Identify security risks if sessions are not destroyed properly.
Q7. (High | K5/K6 | CO3 | 14 Marks)
A university web portal uses servlets to manage student login, course registration, and result
viewing.
a) Design a servlet-based solution using HttpSession for session management.
b) Evaluate different session tracking techniques in this context.
c) Critically analyze performance, scalability, and security concerns.
OR
Q7. (High | K5/K6 | CO3 | 14 Marks)
A banking web application handles authenticated user sessions.
a) Propose a secure session management strategy using servlets.
b) Assess session timeout and destruction mechanisms.
c) Justify best practices for preventing session hijacking and fixation.
Question Cognitive
Question Text BL CO Marks
No Level
What is a request attribute in a
Servlet? How does it differ from
1 Low K1 CO3 5
request parameters? Give one
example.
Write a small Servlet code snippet
2 to set and retrieve a request Low K2 CO3 5
attribute named username.
Explain how RequestDispatcher is
used to forward a request along
3 Low K2 CO3 5
with attributes from one Servlet to
another.
Consider a Servlet StudentServlet
that takes student details from an
4 HTML form. Write code to store Medium K3 CO3 7
these details in request attributes
and forward them to DisplayServlet.
Scenario: You are required to
connect to a MySQL database
named university and insert
5 student details collected from a Medium K4 CO3 7
form. Write a Servlet snippet using
JDBC (without [Link]) to
establish the connection and insert
Question Cognitive
Question Text BL CO Marks
No Level
data. Include proper exception
handling.
Scenario: A Servlet FetchServlet
retrieves all records from the
students table and forwards them
as request attributes to a JSP page
6 [Link]. Write the Medium K4 CO3 7
complete code for this Servlet
including database connection,
query execution, and setting
request attributes.
Option A: Develop a case study
where multiple Servlets handle
a student registration workflow.
One Servlet collects data,
another validates it, and a third
inserts it into the database.
Illustrate the use of request
attributes and JDBC connectivity
in the workflow. Provide
7 High K5/K6 CO3 14 diagrams and sample code
snippets.
Option B: Create a scenario in
which a Servlet retrieves data
from multiple tables (students,
courses, enrollments) and sends
consolidated data as request
attributes to a JSP page. Include
SQL queries, JDBC code, and
request attribute handling.
Question Cognitive
Question Text BL CO Marks
No Level
1 Explain the life cycle of a Servlet with the help of a diagram. Low K1 CO3 5
Write a simple Servlet to display “Hello, World!” in the
2 Low K2 CO3 5
browser using @WebServlet annotation.
Differentiate between doGet() and doPost() methods with
3 Low K2 CO3 5
examples.
Question Cognitive
Question Text BL CO Marks
No Level
Design a Servlet-based mini application to collect student
4 feedback (name, email, course, rating) and display it back in Medium K3 CO3 7
tabular form. Draw the flow diagram.
Create a Servlet to manage a simple login functionality:
check username and password from a hardcoded list and
5 Medium K4 CO3 7
display success or failure message. Include code and flow
diagram.
Write a Servlet that maintains user session using
6 HttpSession. Display the number of visits for a user in a Medium K4 CO3 7
session. Explain how sessions are tracked.
High Level Scenario (Choose One):
Option A: Design a Servlet-based mini application for
online book ordering. Include features: add book to cart,
remove book, view cart, and checkout. Show code
snippets, flow diagrams, and session management.
7 High K5/K6 CO3 14
Option B: Develop a Servlet-based mini application for
student attendance management: mark attendance, view
attendance, and calculate percentage. Include database
integration using JDBC (no [Link]), flow diagrams,
and explanation of session handling.
Question Cognitive
Question Text BL CO Marks
No Level
Define servlet security and list any four common security
1 Low K1 CO3 5
threats to Java servlets.
Explain the role of HTTPS in securing servlets. Provide an
2 Low K2 CO3 5
example of configuring HTTPS in [Link].
What is the difference between authentication and
3 Low K2 CO3 5
authorization in servlet-based applications? Give examples.
Describe the concept of session management in servlets.
4 Medium K3 CO3 7
How can improper session handling lead to security issues?
Case Study: A company’s web application uses servlets to
handle user login. Recently, it faced session hijacking
5 attacks. a) Identify the security flaws in the scenario.b) Medium K4 CO3 7
Suggest three preventive measures to enhance servlet
security.
Question Cognitive
Question Text BL CO Marks
No Level
Scenario: You are deploying a Java servlet-based e-
commerce application on Tomcat server. a) Describe the
6 steps to deploy a servlet using annotations (@WebServlet) Medium K4 CO3 7
and without [Link].b) Explain how to configure role-
based access for different users during deployment.
High-Level (Option 1): Design a secure servlet application
for online banking. The application should implement login
7 authentication, session timeout, and HTTPS configuration. High K5/K6 CO3 14
Prepare a diagram showing servlet flow and explain your
security considerations.
OR
High-Level (Option 2): Analyze a servlet deployment where
the server allows directory listing by default. Identify
7 potential risks and propose detailed deployment strategies High K5/K6 CO3 14
and server configurations to mitigate them. Include a
diagram illustrating secure deployment practices.
Cognitive
Question No Question Text BL CO Marks
Level
Write a Java servlet program that prints “Hello, World!”
1 on the browser. Explain the role of HttpServletRequest Low K1 CO3 5
and HttpServletResponse.
Explain the lifecycle of a servlet. Write code snippets
2 showing where init(), service(), and destroy() methods Low K2 CO3 5
are called.
Write a JDBC program to connect to a MySQL database
3 named university and display all records from a table Low K2 CO3 5
students.
Develop a servlet that accepts student details (name,
roll number, course) from an HTML form and stores
4 Medium K3 CO3 7
them in a MySQL database using JDBC. Provide the
servlet code and explain each step.
A university portal needs to display a list of courses
along with enrolled student counts dynamically. Write a
5 servlet program integrated with JDBC to fetch this Medium K4 CO3 7
information. Include necessary SQL queries and explain
the servlet’s request-response flow.
Cognitive
Question No Question Text BL CO Marks
Level
Design a dynamic web application using Servlets and
6
JDBC that allows updating a student’s grade. Include:
a) HTML
form for
input,
b) Servlet
code for
processing,
c) JDBC
update
query,
d) Error
Medium K4 CO3 7
handling.
Option A (High-level scenario): A college wants to
implement an online feedback system. Each student
submits feedback on multiple subjects. Design a servlet-
7 High K5/K6 CO3 14
based solution using JDBC to store, retrieve, and display
feedback. Include diagrams, code snippets, and explain
your database schema.
Option B (High-level scenario): A library management
system requires a feature to track issued books and
return dates. Develop a dynamic web application using
High K5/K6 CO3 14
Servlets + JDBC to manage this. Include scenario
diagrams, servlet code, and SQL queries for storing and
updating data.