BVRIT HYDERABAD College of Engineering for Women
(Approved by AICTE | Affiliated to JNTUH | Accredited by NAAC with Grade ‘A’ & NBA for EEE, ECE, & CSE)
Bachupally, Hyderabad-090
Department of Computer Science and Engineering
DAY TO DAY EVALUATION OF LABORATORY COURSE
Academic Year: 2025-2026
Name of the Laboratory: Object-Oriented Programming through Java Lab
Year: II Semester: I
Name of the Faculty member: 1. Dr. K Kanaka Vardhini Assistant Professor
2. Ms. K. Neha Assistant Professor
Name of the Student: Roll No:
Individual Signature of
Write up Execution Total
S. No Name of the Experiment Date Performance Faculty
(3 M) (4 M) (10 M)
(3 M) Member
JavaSE application to generate
Electricity bill (use if-else-if
1
ladder) inputs are old reading and
current reading and generate the
bill.
JavaSE application to make a
2
Simple Calculator using
switch...case
Java SE code that reads a set of
3 integers, and then prints the sum
of the even and odd integers
separately (use for loop)
4 Print the following patterns (use
for/while loop)
(Using Arrays)
a)Find duplicate values in an
5 array of integer values
b)Multiplication of two matrices
c)Java program to find common
elements between two arrays
Bank Application. Bank
Employees have to get the menu
with internal options 1. Account
6
Creation, 2. Credit Amount ,3.
Debit Amount, 4. Mini statement,
5. Transfer account, 6. Continue
(y/n)
JavaSE application to check
7
whether the given String is
Palindrome or not.
Write a program that finds the
largest even number from
8
available digits in the given string
after removing the duplicates. If
not possible, print -1.
Program to print all prime
9
numbers between 1 to n, only if it
is part of the Fibonacci series.
Program to implement the
following. A Boy has his money
deposited $1000, $1500 and
$2000 in banks-Bank A, Bank B
and Bank C respectively. We
have to print the money deposited
by him in a particular bank.
10 Create a class 'Bank' with a
method 'getBalance' which
returns 0. Make its three
subclasses named 'BankA',
'BankB' and 'BankC' with a
method with the same name
'getBalance' which returns the
amount deposited in that
particular bank.
Create an interface named Bank
with the services - create account,
credit amount, debit amount,
transfer amount, mini statement
11 and with fixed rate of interest.
Provide two implementation
classes SBI, Axis with necessary
implementations. Use Late
binding to create respective
objects and call the methods.
Create an interface named
Restaurant. create a method that
will print the name of the
restaurant when called. Create an
abstract method called addItem
which adds the Item objects to the
[Link] an abstract method
12
named getmenu which returns an
item array. create an abstract
method placeOrder to generate
order. create an abstract method
named generateBill which takes
orderid and returns totalAmount
with 6% tax. create a class called
KFC that implements Restaurant.
Create an abstract class named
Shape that contains two integers
and an empty method named
printArea(). Provide three classes
13 named Rectangle, Triangle, and
Circle such that each one of the
classes extends the class Shape.
Each one of the classes contains
only the method printArea() that
prints the area of the given shape.
Create and Raise the exception
CreditsNotSuffiecientExceptionif
14
credits are less than 50 with
different caller methods. and
handle them..
Design a an application called
ATM PIN Validator which will
read the acc holder name and pin
no if pin no is incorrect while
15
trying in 3 times
PinMisMatchExceptionobject
will throw an exception called
Sorry..Your Account Has been
Locked
Design an Application called
Student Course
Managementcreate interface
called StudentCourse add an
abstract method called addCourse
which takes Course as an input
16 parameter add an abstract method
called viewCourses which returns
Course array
add an abstract method called
addFee()
If the course fee is more than
1500 then students will get 10
percent Disc. otherwise no Disc.
A multi-thread application that
has three threads. First thread
generates a random integer every
1 second and if the value is even,
17
the second thread computes the
square of the number and prints.
If the value is odd, the third
thread will print the value of the
cube of the number
Seller: Add Products bean into
HashSet. Customer: If any
18 products ordered by customer,
compare with the data stored and
display the total price along with
the details of product.
Write a Java program that loads
names and phone numbers from a
text file where the data is
organized as one line per record
19
and each field in a record is
separated by a tab (\t). It takes a
name or phone number as input
and prints the corresponding
other value from the hash table
Write a Java program that
correctly implements the
20
producer – consumer problem
using the concept of inter thread
communication.
Write a Java program to list all
21 the files in a directory including
the files present in all its
subdirectories.
Write a Java program that works
as a simple calculator. Use a grid
layout to arrange buttons for the
22 digits and for the +, -,*, %
operations. Add a text field to
display the result. Handle any
possible exceptions like divided
by zero.
Develop a Java swing app that
receives an integer in one text
23 field, and computes its factorial
Value and returns it in another
text field, when the button named
“Compute” is clicked
Write a Java program that creates
24 a user interface to perform integer
divisions. The user enters two
numbers in the text fields, Num1
and Num2. The division of Num1
and Num 2 is displayed in the
Result field when the Divide
button is clicked. If Num1 or
Num2 were not an integer, the
program would throw a Number
Format Exception. If Num2 were
Zero, the program would throw
an Arithmetic Exception. Display
the exception in a message dialog
box.
Write a Java program that
simulates a traffic light. The
program lets the user select one
of three lights: red, yellow, or
green with radio buttons. On
25
selecting a button, an appropriate
message with “Stop” or “Ready”
or “Go” should appear above the
buttons in the selected color.
Initially, there is no message
shown.
Create a swing application that
contains a text area in the frame
where it extends the Frame class
and implements ActionListener
26 interface. Using ActionListener
the event is generated on the
button press, where we have to
count the number of characters
and words for a given paragraph
in the text area.
HoD-CSE