0% found this document useful (0 votes)
74 views

Java Programming Lab Manual

This document outlines 13 Java programming experiments assigned as part of a lab course for the second year of a BCA honors degree in computer science. The experiments cover topics like getting input and displaying output, conditional logic for leap years and height categories, abstract classes and methods, matrices and multidimensional arrays, switch statements for calculators, object creation with constructors, interfaces, file I/O, and array lists. For each experiment, the document lists the aim, provides example code, and describes sample output. It is submitted by a student to their instructor for the Java Programming Lab course.

Uploaded by

Kapil Chourasiya
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views

Java Programming Lab Manual

This document outlines 13 Java programming experiments assigned as part of a lab course for the second year of a BCA honors degree in computer science. The experiments cover topics like getting input and displaying output, conditional logic for leap years and height categories, abstract classes and methods, matrices and multidimensional arrays, switch statements for calculators, object creation with constructors, interfaces, file I/O, and array lists. For each experiment, the document lists the aim, provides example code, and describes sample output. It is submitted by a student to their instructor for the Java Programming Lab course.

Uploaded by

Kapil Chourasiya
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

SCHOOL OF ENGINEERING AND

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:

When input is not a leap year:


Experiment 3:
AIM: To write a Java program to display ATM transaction.
CODE:
OUTPUT:
Experiment 4:
AIM: To write a Java program to accept Height of a person & categorize as Tall,
Dwarf & Average.
CODE:

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:

You might also like