Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
2 views

2CA Java Programming Lab Programs

The document outlines a series of Java programming lab assignments for students at Don Bosco College, Yelagiri Hills, focusing on various programming concepts such as arithmetic operations, recursion, OOP principles, and file handling. Each assignment includes a specific task to be completed by designated deadlines ranging from January to March 2025. Students are required to provide aims, sample inputs, and outputs for each program and execute them in the lab.

Uploaded by

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

2CA Java Programming Lab Programs

The document outlines a series of Java programming lab assignments for students at Don Bosco College, Yelagiri Hills, focusing on various programming concepts such as arithmetic operations, recursion, OOP principles, and file handling. Each assignment includes a specific task to be completed by designated deadlines ranging from January to March 2025. Students are required to provide aims, sample inputs, and outputs for each program and execute them in the lab.

Uploaded by

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

DON BOSCO COLLEGE(CO-ED), YELAGIRI HILLS

DEPARTMENT OF COMPUTER APPLICATIONS

2CA - 23UPCA45 - Java Programming Lab Programs


1. Write a Java Program to perform Arithmetic operation using switch case.
2. Write a Java program to generate Fibonacci series.
3. Write a Java program to print n Prime Numbers.
4. Write a Java program to find the sum of the elements and largest element in an array.
5. Write a Java program to perform factorial of a number using recursion.
--------------------------------Last date of completion is 10/01/2025 --------------------------------
6. Write a Java program to compute the GCD and LCM of two numbers using method.
7. Write a Java program to perform matrix multiplication.
8. Write a Java program to check if the given string is a palindrome or not.
9. Write a Java Program to perform operations on string such as finding length of a string,
concatenate two strings, reverse a string, counting of words and lines in a string, search,
extract and delete a substring from the given string. (Use StringBuffer class)
10. Write a simple Java program to handle different exceptions.
--------------------------------Last date of completion is 31/01/2025 --------------------------------
11. Write a simple Java program to demonstrate the concept of Encapsulation in OOPs.
12. Write a simple Java program to demonstrate the concept of Abstraction & Interface in OOPs.
13. Write a simple Java program to demonstrate the concept of Hierarchical Inheritance in OOPs.
14. Write a simple Java program to demonstrate the concept of Method Overriding in OOPs.
15. Write a simple Java program to demonstrate the concept of Method Overloading in OOPs.
--------------------------------Last date of completion is 21/02/2025 --------------------------------
16. Write a simple Java program to create a package and use that package in another program.
17. Write a simple Java Program to demonstrate the concept of Multithreading.
18. Write a Java program to create a file, write into the file and read the file.
19. Write a Java program to demonstrate event handling.
20. Write a Java program that works as a simple calculator. Use a grid layout to arrange buttons
for the digits and for the +, -,*, % operations. Add a text field to display the result. Handle
any possible exceptions like divide by zero.
--------------------------------Last date of completion is 14/03/2025 --------------------------------

Note: Write Aim, Program, Sample Input (Get Input from the User) and Output for all the
programs in the Observation and execute all the programs in the Lab.

You might also like