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

Java Programs

The document outlines a series of programming tasks focusing on object-oriented concepts in a programming language. It includes creating classes and objects, demonstrating various types of inheritance, method overloading and overriding, and exception handling. Additionally, it covers threading and file operations, as well as string manipulation techniques.

Uploaded by

Diksha Saraswat
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 views2 pages

Java Programs

The document outlines a series of programming tasks focusing on object-oriented concepts in a programming language. It includes creating classes and objects, demonstrating various types of inheritance, method overloading and overriding, and exception handling. Additionally, it covers threading and file operations, as well as string manipulation techniques.

Uploaded by

Diksha Saraswat
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

1.

Write a program to create a class and object and display values using

methods.

2. Write a program to demonstrate constructor and constructor

overloading.

3. Write a program to demonstrate method overloading.

4. Write a program to demonstrate inheritance (single inheritance).

5. Write a program to demonstrate multilevel inheritance.

6. Write a program to demonstrate method overriding.

7. Write a program to show runtime polymorphism.

8. Write a program using an abstract class.

9. Write a program to implement an interface.

10. Write a program to handle exceptions using try-catch-finally.

11. Write a program to create a user-defined exception.

12. Write a program to create a thread using Thread class.

13. Write a program to create a thread using Runnable interface.

14. Write a program to read and write data from a file.

15. Write a program to demonstrate String and StringBuffer

operations.

You might also like