COURSE DELIVERY PLAN –LABORATORY
Course Name: JAVA PROGRAMMING LAB Regulation: V23
Admitted Batch: 2023 Academic Year: 2024-2025
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING L: 0
PROGRAM (UG/PG): CSE(CAI/CSM) T: 0
Course Code: P: 3
Course Name: JAVA PROGRAMMING LAB C: 1.5
Regulation : V23 Date:
Rev No: 01
Class Course Coordinator Section Name of the Faculty
CAI/CSM/CSC Mr.K.Rupendra Singh
CSE-A/B/C Ms. V.Ramarao
II B.Tech-I Sem Mr K.Rupendra Singh
CSD Mr.VSR Prasad
LIST OF EXPERIMENTS:
Exercise - 1 (Basics)
a) Write a JAVA program to display default value of all primitive data 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.
Exercise - 2 (Operations, Expressions, Control-flow, Strings)
a) Write a JAVA program to search for an element in a given list of elements 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 StringBuffer to delete, remove character.
Exercise - 3 (Class, Objects)
a) Write a JAVA program to implement class mechanism. Create a class, 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.
Exercise - 4 (Inheritance)
a) Write a JAVA program to implement Single Inheritance
b) Write a JAVA program to implement multi-level Inheritance
c) Write a java program for abstract class to find areas of different shapes
Exercise - 5 (Inheritance - Continued)
a) Write a JAVA program give example for “super” keyword.
b) Write a JAVA program to implement Interface. What kind of Inheritance can be achieved?
c) Write a JAVA program that implements Runtime polymorphism
Exercise - 6 (Exception)
a) Write a JAVA program that describes exception handling mechanism
b) Write a JAVA program Illustrating Multiple catch clauses
c) Write a JAVA program for creation of Java Built-in Exceptions
d) Write a JAVA program for creation of User Defined Exception
Exercise – 7 (Threads)
a) Write a JAVA program that creates threads by extending Thread 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
Exercise – 8 (Packages)
a) Write a JAVA program that import and use the user defined packages
Session Teaching
No Topics to be covered Reference
aids
Lab Manual
Exercise 1(Basics) Page : 3-5 PPT
1 a) Display default values of Primtive Types
b) Display roots of Quadratic Equation
Exercise - 2 (Operations, Expressions, Control-flow, Strings) Lab Manual
Page : 6-9 BB
a) Implementing Binary Search
2 b) Implementing Bubble Sort
c) String Buffer to delete, remove a character
Exercise - 3 (Class, Objects) Lab Manual
a) Program to create a Class, Methods and to invoke the Page : 10-14
methods
3 b) Write a JAVA program implement method overloading PPT
c) Program to implement Constructor
d) Program to implement constructor overloading.
Exercise - 4 (Methods) Lab Manual
a) JAVA program to implement Single Inheritance Page : 15-23
b) JAVA program to implement multi-level Inheritance BB
4
c) java program for abstract class to find areas of different
shapes
Exercise-5(Inheritance) Lab Manual
a) JAVA program give example for “super” keyword. Page : 24-31
b) JAVA program to implement Interface. What kind of PPT
5
Inheritance can be achieved?
c)JAVA program that implements Runtime polymorphism
6 Exercise - 6 (Inheritance-Continued) Lab Manual PPT
a)JAVA program that describes exception handling Page : 32-39
mechanism
b) JAVA program Illustrating Multiple catch clauses
c) JAVA program for creation of Java Built-in Exceptions
d) JAVA program for creation of User Defined Exception
Exercise-7(Threads) Lab Manual
a) JAVA program that creates threads by extending Thread Page : 40-47
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 PPT
7
implementing Runnable)
b) Write a program illustrating is Alive and join ()
c) Write a Program illustrating Daemon Threads.
d) JAVA program Producer Consumer Problem
Exercise-8(Packages) Lab Manual
a) Write a JAVA program that import and use the user Page : 48 PPT
8
defined packages
COURSE OUTCOMES:
CO DESCRIPTION
C 218.1 Make use of Primitive Data Types, Expressions, Classes and Methods to conduct
investigations of various problems (K3).
C 218.2 Simulate Inheritance, Exception Handling Mechanism and Runtime Polymorphism to design
solutions for complex problems (K3).
C 218.3 Survey Threads and Packages of Java Standard Library to communicate effectively on
complex Engineering activities (K4).
C 218.4 Illustrate how to import and use classes from both built-in and user-defined packages in Java
applications. (K4).
* Session duration: 150 min
Mapping COs and POs:
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO2
COs
CO1 3 3 3 3 3 - - - 2 2 2 3 3 3
CO2 3 3 3 3 3 - - 2 2 2 2 3 3 3
CO3 3 2 3 3 3 - - 2 2 3 2 3 3 3
CO4 3 2 3 3 3 - - 2 2 3 2 3 2 2
Avg 3 2.5 3 3 3 - - 2 2 2.5 2 3 2.75 2.75
Prepared by Signature Approved By Signature
HoD-CSE
Mr.
PRINCIPAL