BCSL-043
1. Write and
execute java program which create a shape class and derive circle and rectangle
classes from shape class. All the classes in this program should have proper
constructors and methods to display details of different shapes. Also use
appropriate access specifiers in your program. (10 Marks)
2. Write a
program in java for exception handling for operating a Stack data structure.
Throw appropriate exceptions in different cases (such as stack is full and
attempt is made to push the data etc.) (15 Marks)
3. Write a
program in java to create an applet which draws a circle and display current
date and time inside the circle.
****************************************************************
Note: Answer
with Dotcom Books
www.dotcombooks4u.com
(Last 5 year
solved question paper with Assignment solutions)
9825183881
***************************************************************
No comments:
Post a Comment