0% found this document useful (0 votes)
7 views4 pages

Practical File JP

This document is a practical file for a Java Programming Lab course for BCA students, detailing various programming assignments. It includes a list of programs covering topics such as class declaration, method overloading, inheritance, polymorphism, and exception handling. The file is submitted by a student, Anmol Saxena, to Ms. Pragati Mishra at Chander Prabhu Jain College as part of their academic requirements.

Uploaded by

Muskan Gupta
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views4 pages

Practical File JP

This document is a practical file for a Java Programming Lab course for BCA students, detailing various programming assignments. It includes a list of programs covering topics such as class declaration, method overloading, inheritance, polymorphism, and exception handling. The file is submitted by a student, Anmol Saxena, to Ms. Pragati Mishra at Chander Prabhu Jain College as part of their academic requirements.

Uploaded by

Muskan Gupta
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

PRACTICAL FILE

“Java Programming Lab”


BCA IV – 272P
Submitted in Partial Fulfillment of the requirement of BCA
(Bachelor of Computer Application)
Batch (2023 – 2026)

Submitted to: Submitted by:


Ms. Pragati Mishra Anmol Saxena
Assistant Professor 70724202023

Chander Prabhu Jain College of Higher Studies & School of Law


An ISO 9001:2015 Certified Quality Institute
(Recognized by Govt. of NCT of Delhi,
Affiliated to GGS Indraprastha University, Delhi & Approved by Bar Council of India)
INDEX

[Link] PROGRAM NAME PAGE DATE SIGN


NO.

1. Write a program declaring a class Rectangle


with data member's length and breadth and 1
member functions Input, Output and Calc
Area.

2. Write a program to demonstrate use of


method overloading to calculate area of 2
square, rectangle and triangle.

3-4
3. Write a program to demonstrate the use of
static variable, static method and static block.

5-6
4. Write a program to demonstrate concept of
"this".

7-8
5. Write a program to demonstrate multi-level
and hierarchical inheritance.

9-10
6. Write a program to use super() to invoke
base class constructor.

11
7. Write a program to demonstrate run-time
polymorphism.

12-13
8. Write a program to demonstrate the concept
of aggregation.

14-15
9. Write a program to demonstrate the concept
of abstract class with constructor and "final
method.

16-17
10. Write a program to demonstrate the concept
of interface when two interfaces have unique
methods and same data members.
18-19
11. Create a class employee which have name,
age and address of employee, include
methods getdata() and showdata(), getdata()
takes the input from the user, showdata()
display the data in following format:

Name:
Age:
Address:
20-21
12. Write a Java program to perform basic
Calculator operations.
Make a menu
driven program to select operation to perform
(+-*/). Take 2 integers and
perform operation as chosen by user.

22
13. Write a program to make use of Buffered
Stream to read lines from the Keyboard until
‘STOP’ is typed.

23-24
14. Write a program declaring a Java class called
Savings Account with members "account
Number" and "Balance". Provide member
functions as
“Deposit Amount ()`` and `withdraw Amount
()`.
If user tries to withdraw an amount greater
than their balance then throw a user-defined
exception.

Write a program creating 2 threads using 25


15. Runnable interface. Print your
name in ``run ()`` method of first class and
"Hello Java" in ``run ()`` method
of second thread.

You might also like