List of Programs
List of Programs
1. Define a package named myInstitute include class named as department with one
method to display the staff of that department. Develop a program to import this
package in a java application and call the method defined in the package.
2. Develop a program which consists of the package named let_me_calculate with a class
named calculator and a method named add to add two integer numbers.
Import let_me_calculate package in another program (class named Demo) to add two
numbers.
3. Develop a program to accept password from user and throw “Authentication Failure”
exception if the password is incorrect.
4. Define an exception called “NotMatchException” that is thrown when a string is not
equal to “India”. Write a program that uses this exception.
5. Write a program to show the use of Integer Wrapper class methods.
6. Write a program to convert String value into Integer Wrapper class object.
7. Write a program to make use of Character Wrapper class methods.
8. Write a program to convert Integer object value into primitive datatype byte, short and
double value.
9. Demonstrate the use of Overriding method display() using super and sub classes.
10.Develop a program to extend ‘dog’ from ‘animal’ to override ‘move()’ method using
super keyword.
11.Develop a program to implement the multilevel inheritance.
12.Develop a program to calculate the room area and volume to illustrate the concept of
single inheritance(Assume suitable data wherever necessary)
13.Develop a program to find area of rectangle and circle using interfaces.
14.Develop a basic applet to display “Welcome to the World of Applet”.
15.Develop a program to draw polygon.
16.Develop a program to draw Cone.
17.Develop a program to draw Cylinder.
18.Develop a program to draw Cube.
19.Develop a program to draw Square Inside a circle.
20.Develop a program to draw Circle inside a square.