0% found this document useful (0 votes)
1 views1 page

Java Index

The document outlines a series of Java programming assignments, each with specific tasks related to object-oriented programming concepts such as classes, interfaces, exception handling, and multithreading. It includes instructions for creating classes, handling exceptions, and demonstrating the immutability of strings. Each assignment is numbered and includes page references for further details.

Uploaded by

tanushree4264
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)
1 views1 page

Java Index

The document outlines a series of Java programming assignments, each with specific tasks related to object-oriented programming concepts such as classes, interfaces, exception handling, and multithreading. It includes instructions for creating classes, handling exceptions, and demonstrating the immutability of strings. Each assignment is numbered and includes page references for further details.

Uploaded by

tanushree4264
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

SL. NO. ASSIGNMENTS Page No.

REMARKS

1. Write a java code to take Account no , Name and 1-5


Balance as input of ten customers and display the
name and account no of those customers whose
balance is less than one thousand.

2. Create a class named Figure. Make Circle, square 6-8


and triangle as object of the class Figure and
calculate their surface area by concept of
constructor overloading.
3. Write a Java program to show that String class is 9-10
immutable and StringBuffer class is mutable.
4. Consider a class that represents an account in a 11-13
bank. Let the minimum balance for the account be
Rs.1000. Write a program that throws an exception
when a withdrawal results in the balance
decreasing to value less than Rs. 1000.
5. Write a Java code to create a package named 14-15
“testpackage”, create a class named “Add” under
this package which contains a method named”
display”. Import this package in another Java
program.

6. Write a Java code to use the members of outer 16-17


class from inner class and vice versa.

7. Write a Java code to create Interface. Implement 18-19


this Interface in another Java Program.
8. Write a Java code to implement multi-Threading 20-21
concept.

9. Write a Java code to create a multilevel package 22-24


and also creates a reusable class to generate
Fibonacci series, where the function to generate
Fibonacci series is given in a different file
belonging to the same package.
10. Write a Java code that creates illustrates different 25-27
levels of protection in classes/subclasses belonging
to same package or different packages .
11. Write a Java code ―Divide By Zero that takes two 28-29
numbers a and b as input, computes a/b, and
invokes Arithmetic Exception to generate a
message when the denominator is zero.
12. Write a Java code to show the use of nested try 30-32
statements that emphasizes the sequence of
checking for catch handler statements.

You might also like