Java Programming Lab Manual
Java Programming Lab Manual
TECHNOLOGY
SESSION – 2022-25
SECOND YEAR
THRID SEMESTER
Java Programming Lab.
Course Name: BCA(Hons.) DS
Course Code:
Submitted By: Submitted To:
Omkar Prasad Dekate Mr. Atul Kumar Gupta Sir
JLU ID: JLU06920 JLU School of
Roll Number: 2022BCADS020 Engineering and Technology.
Index
Serial Experiment Faculty
Number Signature
01 To write a Java program to get a Number &
Display the Sum of Digits.
02 To write a Java program to check whether
Entered year is a Leap year or not.
03 To write a Java program to display ATM transaction.
04 To write a Java program to accept Height of a person
& categorize as Tall, Dwarf & Average.
05 To write a Java program to read a Grade & Display
the Equivalent Description.
06 To write a Java program to find duplicate characters
in a String.
07 To write a Java program to illustrate use of Abstract
Class & Method.
08 To write a Java program to add two Matrix using
Multidimensional Arrays.
09 To write a Java program to make a calculator using
Switch Case.
10 To write a Java program to create the object for Class
& Assign value in object using Constructor.
11 To write a Java program to make Shape as an
Interface and Implement it using Circle & Rectangle
Class.
12 To write a Java program to get a list of all
file/directory names from the given.
13 To write a Java program to create a new array list,
add some colours (string) and print out the
collection.
Experiment 1:
AIM: To write a Java program to get a Number & Display the Sum of
Digits.
CODE:
OUTPUT:
Experiment 2:
AIM: To write a Java program to check whether Entered year is a Leap
year or not.
CODE:
OUTPUT:
When input is a leap year:
OUTPUT:
Experiment 5:
AIM: To write a Java program to read a Grade & Display the Equivalent
Description.
CODE:
OUTPUT:
Experiment 6:
AIM: To write a Java program to find duplicate characters in a String.
CODE:
OUTPUT:
Experiment 7:
AIM: To write a Java program to illustrate use of Abstract Class & Method.
CODE:
OUTPUT: