Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

NMAM.I.T.

, NITTE
DEPARTMENT OF MCA
II SEM MCA

11-07-2022
Enterprise Java Lab Assignment – 2

1. Write a program to Show the multilevel and hierarchical inheritance for a


student class.
2. Write a program to demonstrate the uses of this reference.
3. Create the following class to perform banking operations.
Class Name: bank
Data Members: cust_name,acc_no
Methods:Deposit(),withdraw(double,double),display(float), Creat_acc()
Initialize the data members of the given class with default and parameterized
constructors.
4. Write method overriding program for calculating the salary of different types of
employees in a bank class.
5. Write a program to calculate the grade of a student. Create an interface in the
package Student with methods read(), calculate() and display() to achieve the
user requirement. Place an abstract class which implements the methods read()
and display() in the package named Implementation and a class which
implements calculate() in Result package. Create the instances of required class
to achieve the user requirement.
6. Execute the program 5 using packages and sub packages. Use the fully qualified
names to access the members of class.
7. Write a program to calculate DA, HRA, PF, IT and Net of ‘N’ employees using the
concept of Association and Aggregation.
8. Write a java program to demonstrate the uses of Final keyword.
9. Create an interface Bank with method readCustomerInfo(). Using interface
inheritance, create interfaces ICICI and Axis with methods calculateInterest()
and displayDetails(). Create a class to implement the interfaces.
10. Write a program to calculate the area of any three shapes using the concept of
dynamic method dispatch.

You might also like