Core - JAVA Lab Manual
- Write a Java Program to create an abstract class named Shapethat contains two integers and an empty method named printArea(). Provide three classes named Rectangle, Triangleand Circle such that each one of the classes extends the classShape. Each one of the classes contains only the method printArea () that prints the area of the given shape.
- Write a Java program to implement user defined exception
handling.
- Write a Java program that reads a file name from the user,
displays information about whether the file exists, whether the
file is readable, or writable, the type of file and the length of
the file in bytes.
- Write a java program that implements a multi-threaded
application that has three threads. First thread generates a
random integer every 1 second and if the value is even, second
thread computes the square of the number and prints. If the
value is odd, the third thread will print the value of cube of the
number.
- Write a java program to find the maximum value from the
given type of elements using a generic function.
- Design a calculator using event-driven
programming paradigm of Java with the following
options.a) Decimal manipulationsb) Scientific manipulations
No comments:
Post a Comment