You are on page 1of 1

Assignment 3:

1. Overload a function to print one and two integer


values using JAVA Programming.
2. Compare two objects for equality by passing object as
a parameter using JAVA Programming.
3. Pass some command line arguments and display
them Using JAVA Programming.
4. Write a constructor for this class that takes a String argument and stores
it. Write a method that prints out the stored String. An "Input is not a String"
exception should be thrown if the input is not a string.
5. A class called circle is designed as shown in the following class diagram.
It contains:
Two private instance variables: radius (of type double) and color (of
type String), with default value of 1.0 and "red", respectively.
Two overloaded constructors;
Two public methods: getRadius() and getArea().

6. Write a JAVA program to create a server that


continuously runs and sends the date and time as soon
as a client connects to it .

You might also like