DEPARTMENT OFCOMPUTER SCIENCE AND ENGINEERING
LAB MANUAL
Academic Year : 2024-25
Admitted Batch : 2023
Year & Semester : II B.TECH I SEMESTER
Regulation : VR23
Name of the Course : OOPS Through JAVA LAB
Number of periods per week : 03
Credits : 03
Section Name of the
Faculty handled
CSE A,B,C Mr.V.Ramarao
Ms.K.Pavani
CSE-CAI,CSM,CSC
Mr.V.S Ram
CSE-CSD
Prasad
Course Coordinator Module Coordinator Head of the Department
JAVA PROGRAMMING LAB
INDEX
S. NO TOPIC PAGE NO
1 a) Write a JAVA program to display default value of all primitive data 1-3
type of JAVA
b) Write a java program that display the roots of a quadratic equation
ax2+bx=0. Calculate the discriminate D and basing on value of D,
describe the nature of root.
2 a) Write a JAVA program to search for an element in a given list of elements 4-8
using binary search mechanism.
b) Write a JAVA program to sort for an element in a given list of elements
using bubble sort
c) Write a JAVA program using String Buffer to delete, remove character.
3 a) Write a JAVA program to implement class mechanism. Create a class, 9-16
methods and invoke them inside main method.
b)Write a JAVA program implement method overloading
c) Write a JAVA program to implement constructor.
d) Write a JAVA program to implement constructor overloading.
4 a) Write a JAVA program to implement Single Inheritance 17-20
b) Write a JAVA program to implement multi-level Inheritance
c) Write a java program for abstract class to find areas of different
shapes
5 a) Write a JAVA program give example for “super” keyword. 21-24
b) Write a JAVA program to implement Interface. What kind of Inheritance
can be achieved?
c) Write a JAVA program that implements Runtime polymorphism
6 a) Write a JAVA program that describes exception handling mechanism 25-30
b) Write a JAVA program Illustrating Multiple catch clauses
c) Write a JAVA program for creation of Java Built-in Exceptions
d) d)Write a JAVA program for creation of User Defined Exception
7 a ) a ) Write a JAVA program that creates threads by extending Thread 31-39
class.First thread display “Good Morning “every 1 sec, the second thread
displays “Hello “every 2 seconds and the third display “Welcome” every 3
seconds ,(Repeat the same by implementing Runnable)
b) Write a program illustrating isAlive and join ()
c) Write a Program illustrating Daemon Threads.
d) Write a JAVA program Producer Consumer Problem
8 a) Write a JAVA program that import and use the defined your package 40-48
b) Without writing any code build a GUI that displays text in label and image in
an image view using java FX
c) Build a tip calculator app using several JavaFX components and learn how to
respond to user interactions with the GUI
Department Of Computer Science and Engineering