0% found this document useful (0 votes)
2 views3 pages

Practical File Object Oriented Programming Using Java

This document is a practical file submitted for external examination in the Bachelor of Computer Application program, focusing on Object Oriented Programming using Java. It includes a list of lab programs that cover various Java programming concepts, such as mathematical operations, string manipulation, class inheritance, and exception handling. The practical file is affiliated with CCS University Meerut and is intended for the academic year 2025-2026.

Uploaded by

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

Practical File Object Oriented Programming Using Java

This document is a practical file submitted for external examination in the Bachelor of Computer Application program, focusing on Object Oriented Programming using Java. It includes a list of lab programs that cover various Java programming concepts, such as mathematical operations, string manipulation, class inheritance, and exception handling. The practical file is affiliated with CCS University Meerut and is intended for the academic year 2025-2026.

Uploaded by

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

A

PRACTICAL FILE
Submitted for External Examination
IN
BACHELOR OF COMPUTER APPLICATION

OBJECT ORIENTED PROGRAMMING USING JAVA (BCA-2004P)

(CODE- BCA-2004P)

Beacon Institute of Technology, Meerut

Submitted To : Submitted
By:

Mr. Sanjeev Giri (Assistant Professor) Name : ...............


Department of BCA Roll No:.............

Affiliated to
CCS University Meerut (Utter Pradesh)
(2025-2026)

All India Council for Technical Education


New Delhi
LAB PROGRAMS LIST
[Link]. Object Oriented Programming Using Java (BCA-2004P) Date Sign
1 Write a program to read two numbers from the user and print their product.
Write a program to print the square of a number passed through command line ar-
2
guments.
Write a program to send the name. and surname of a student through command line
3
arguments and print a welcome message for the student.
4 Write a Java program to find the largest number out of natural numbers.
Write a Java program to find the Fibonacci series & Factorial of a number using re-
5
cursive and non-recursive functions.
6 Write a Java program to multiply two given matrices.
7 Write a Java program for sorting a given list of names in ascending order.
Write a Java program that checks whether a given string is a palindrome or not (e.g.,
8
MADAM is a palindrome).
Write a Java program to read n number of values in an array and display them in re-
9
verse order.
Write a Java program to perform mathematical operations. Create a class called
AddSub with methods to add and subtract. Create another class called MulDiv that
10 extends from AddSub class to use the member data of the superclass. MulDiv should
have methods to multiply and divide. A main function should access the methods and
perform the mathematical operations.
Create a JAVA class called Student with the following details as variables within it:
USN, NAME, BRANCH, PHONE, PERCENTAGE. Write a JAVA program to create n Stu-
11
dent objects and print the USN, Name, Branch, Phone, and Percentage of these ob-
jects with suitableheadings.
Write a Java program that displays the number of characters, lines, and words in a
12
text.
Write a Java program to create a class called Shape with methods called getPerime-
13 ter() and getArea(). Create a subclass called Circle that overrides the getPerimeter()
and getArea() methods to calculate the area and perimeter of a circle.
Write a Java program to create a class Employee with a method called calculate-
Salary(). Create two subclasses Manager and Programmer. In each subclass, override
14
the calculateSalary() method to calculate and return the salary based on their spe-
cific roles.
Write a Java program using an interface called 'Bank' having a function 'rate_of_in-
terest()'. Implement this interface to create two separate bank classes SBI and PNB
15
to print different rates of interest. Include additional member variables and con-
structors in classes SBI and PNB.
Write a Java package program for the class Book and then import the data from the
16
package and display the result.
Write a Java program for finding the cube of a number using a package for various
17
data types and then import it into another class and display the results.
18 Write a Java program for demonstrating the divide by zero exception handling.
Write a Java program that reads a list of integers from the user and throws an excep-
19
tion if any numbers are duplicates.
Create an exception subclass UnderAge, which prints "Under Age" along with the age
value when an object of UnderAge class is printed in the catch statement. Write a
20 class ExceptionDemo in which the method test() throws UnderAge exception if the
variable age passed to it as an argument is less than 18. Write the main() method to
demonstrate the working of the program.

You might also like