What will be said about the relation between the objects


Program: Consider the Java Statement:

int comparison - object1.compareTo(object2);

where object1 and object2 both implement the comparable interface. After the statement, the value stored in the variable comparison is -1.

Assuming the compareTo method is written correctly, what will be said about the relation between the objects object1 and object2?

Make this program using java programming. Make this application in simple way.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: What will be said about the relation between the objects
Reference No:- TGS0957036

Expected delivery within 24 Hours