oops through java lab-AIML
oops through java lab-AIML
1. a) Write a Java program to compute distance light travels using long variables.
3. a) Write a short program that uses double variables to compute the area of circle.
b) Write Java program box uses a constructor to initialize the dimensions of a box.
b) Write a Java program on try and catch statements using Null Pointer Exception.
b) Write program using box uses a parameterized constructor to initialize the dimensions of a box.
c) Write program to design module to importing packages from other packages.