FACULTY OF ENGINEERING & TECHNOLOGY
BACHELOR OF TECHNOLOGY
DESIGN OF DATA STRUCTURES
(3030105202)
3st SEMESTER
COMPUTER SCIENCE & ENGINEERING DEPARTMENT
Laboratory Manual
1
CERTIFICATE
This is to certify that
Mr./Ms................................................................................... with enrolment
no ................................................................. has successfully completed his/her
laboratory experiments in the OBJECT ORIENTED PROGRAMMING WITH JAVA
LABORATRY (3030105206) from thedepartment of. during the academic year
................................
Date of Submission:......................... Staff In charge:...........................
Head of Department:...........................................
INDEX
Subject: - OBJECT ORIENTED PROGRAMMING WITH JAVA LABORATRY
Subject Code: 3030105206
Academic Year : 2024-2025
Sr. Date of Date of Marks out
Experiment Title Page Perform Assessm Sign
No. 0f 10
No. ance ent
List of Practical To From
write a program to display Hello World message
1 in console window.
Write a program to perform arithmetic and
2 bitwise operations in a single source program
without object creation.
Write a program to perform arithmetic and
bitwise operation by creating individual methods
3
and classes and create an object to execute
individual methods of each operations.
Write a java program to display the employee
4
details using Scanner class.
Write a Java program that prints
allrealsolutionsto the quadratic equation
ax2+bx+c = 0. Read in a, b, c and use the
5 quadratic formula. If the discriminate b2-4ac is
negative, display a message stating that there
are no realsolutions.
The Fibonacci sequence is defined by the
following rule. The first 2 values in the sequence
are 1, 1. Every subsequent value is the sum of the
6 2 values preceding it. Write a Java program that
uses both recursive and non- recursive functions
to print the nth value of the Fibonacci sequence
Write a Java program that prompts the user for an
integer and then prints out all the prime numbers
7 up to that Integer?
8 Write a Java program to multiply two given
matrices?
Write a Java program for sorting a given list of
9 names in ascending order?
Write a java program for Method overloading
10 and Constructor overloading
Write a java program to represent Abstract class
11 with example.
Write a program to implement multiple
Inheritances.
12
write program to demonstrate method overriding
13
and super keyword.
Write a java program to implement Interface
14
using extends keyword
Write a java program to create inner classes.
15
Write a java program to create user defined
16
package
Write a Java program that displays the number of
17
characters, lines and wordsin a text?
Write a Java program that checks whether a
18 given string is a palindrome or not. Ex: MADAM
is a palindrome?
Write a Java program that reads a line of integers
19 and then displays each integer and the sum of all
integers. (Use StringTokenizer class)?
Write a java program for creating single try block
20
with multiple catch blocks.
write a program for multiple try blocks and
21
multiple catch blocks including finally.
write a program to create user defined exception.
22
Write a java program for producer and consumer
23
problem using Threads.
Write a java program that implements a multi-
thread application that has three threads. First
thread generates random integer every 1 second
24 and if the value is even, second thread computes
the square of the number and prints. If the value
is odd, the third thread will print the value of
cube of the number.
write a program to create dynamic array using
25 ArrayList class and the print the contents of the
array object.
Write programsto implement add,search and
26
remove operation on ArrayList object.