JAVA Programming LAB-QUESTIONS (MCA-3) Semester: Operators
JAVA Programming LAB-QUESTIONS (MCA-3) Semester: Operators
POLYMORPHISM
91 Write a program to create Compute class which contains two methods
with the same name but with different signatures.
92 WAP where calculate() method of super class is overridden by the
calculate() method of sub class. The behaviour of the calculate()
method is dynamically decided.
EXCEPTION HANDLING
93 WAP using try, catch and finally block give an example.
94 WAP which shows how to handle the ArithmeticException and
ArrayIndexOutOfBoundsException.
95 WAP displays the use of throws clause
96 WAP displays the use of throw clause for throwing the NullPointerException
THREADS