INDEX PAGE
SERIAL NO. ASSIGNMENT TOPIC PAGE NO. TEACHERS’
SIGNATURE
1. Find the sum of any 01
number of integers
entered as command line
arguments.
2. Find the factorial of a given 01
number.
3. Check if a number is prime 02
or not, by taking the
number as input from the
keyboard.
4. Find maximum and 02-03
minimum element of a
single dimensional array by
defining the array
dynamically with the help
of new operator.
5. Print all the elements of 03
two dimensional array
using loop and .length
property.
6. Multiply two matrices using 03-04
multi-dimensional array.
7. Convert a decimal to binary 04-06
number and vice versa
using both library functions
and custom logic .
8. Write a program that show 06-07
working of different
functions of String and
StringBuffer classs like
setCharAt(), setLength(),
append(), insert(), concat()
and equals().
9. Write a program to create 07
a box class with methods
where the volume of the
box is computed in terms
of height, width, depth
using objects of that class.
Use a constructor to
initialize the dimensions of
that box.
10. Modify the box class by 08
creating parameterized
and overloaded
constructors for assigning
values (height, weight,
depth) to the box object in
various ways.
11. Write a program to 09
demonstrate the concept
of boxing and unboxing.
12. Write a program on 09
multilevel inheritance.
13. Write a program on 10
Dynamic Method Dispatch.
14. Write a program on 10
abstract class.
15. Write a program on 11
multiple inheritance using
interface.
16. Demonstrate the use of 11-13
super , final, this keyword.
17. Write a program on 13-14
package where one
package has a reusable
class and import it to
another class to use it and
keep this demo class in
another package.
18. Differentiate between 14
public, private, protected
access specifiers.
19. Write a program 15
―DivideByZero that takes
two numbers a and b as
input, computes a/b, and
invokes Arithmetic
Exception to generate a
message when the
denominator is zero.
Write a program to demonstrate the concept of boxing and unboxing.
INPUT
OUTPUT
INPUT
OUTPUT
Write a program on multilevel inheritance.
OUTPUT
INPUT
Write a program on Dynamic Method Dispatch.
INPUT OUTPUT
Write a program on abstract class.
INPUT
OUTPUT
Write a program on multiple inheritance using interface.
INPUT OUTPUT
Demonstrate the use of super , final, this keyword.
INPUT OUTPUT
INPUT OUTPUT
INPUT OUTPUT
INPUT OUTPUT
INPUT OUTPUT
INPUT OUTPUT
INPUT OUTPUT
Write a program on package where one package has a reusable class and
import it to another class to use it and keep this demo class in another
package.
INPUT
OUTPUT
Differentiate between public, private, protected access specifiers.
INPUT OUTPUT
Write a program ―DivideByZero that takes two numbers a and b as input,
computes a/b, and invokes Arithmetic Exception to generate a message
when the denominator is zero.
INPUT
OUTPUT
Acknowledgement
Place: Naihati
Date:
I would like to express my sincere thanks to our professor, Mrs. Debashree Bhattacharya ,for
her valuable guidance and support in completing my project.
I would also like to express my gratitude towards our principal Dr. Goutam Kumar Ghosh for
giving me this great opportunity to do a project on Multimedia. Without their support and
suggestions, this project would not have been completed.
Ananya Ray
Signature