You are on page 1of 2

M. M.

INSTITUTE OF COMPUTER TECHNOLOGY & BUSINESS MANAGEMENT


MAHARISHI MARKANDESHWAR UNIVERSITY, MULLANA (AMBALA)
Subject Code: BCA-606

Subject Title: S/W Lab - VIII, JAVA


(Based on BCA - 601)

List of Practical Assignments in Java


INTRODOCTION TO JAVA
1. Write a menu driven program to enter one integer and one double type number from command
line and perform arithmetic operations on them.
2. Program to read Strings from Command Line arguments and sort them in ascending order
3. Write a Program to demonstrate the use of StringTokenizer class.
CLASSES AND OBJECTS
4. Design a class to represent a bank account. Include the following members:Data members:Name of depositor
Account number
Type of account
Balance account
Methods:To assign initial value
To deposit amount
To withdraw an account after checking the balance
To display the name and balance
5. Design a class Room with 3 constructors {each of different type}.Use the constructor to make 3
objects of class room and call its Function displays the length, breadth and height of the room.
6. Create a class mathoperate with 2 static functions mul and divide.Create another class mathapply
that call the function of mathoperate class.
7. Write a program to demonstrate Method Overriding and Method Overloading.
8. Write a program to implement user defined package concept.
INHERITANCE
9. Create a class employee with 2 data members-name and phone. Create three subclasses of
employee class manager, accountant and engineer. Include 2 additional data members in the
subclass and base class. Create the objects of data of each subclass by first calling the display of
base Class from display of subclass {use super keyword}.
10. Create an abstract class A with at least one abstract method. Inherit this class and give
implementation of this abstract method and call this method by creating the object of the
subclass.

INTERFACE
11. Create interface A, B, C .include at least one function in these interface of your choice. Create a
class M that implements an interface and give body to all the interface function. Use this class by
creating its object.
EXCEPTION HANDLING
12. Write a Program to create your custom exception and throw it using nested try blocks and
finally.
FILE HANDLING
13. Write a program to copy one file into other.
APPLETS
14. Create applets that display your name on the applets.
15. Write a program to create a form using awt components.
Graphics
16. Write a program to create
(a) Hut using Graphics.
(b) Human Face using Graphics.

Practical Assignments beyond syllabus


17. Write a Program to demonstrate the use of Multithreading.
18. Write A Program to Implement PUSH and POP Operation on a Stack.

Prepared By: Mr. Parvinder Singh Kalra

Principal

You might also like