Question: 2 3 . The equals method for Circle objects defined in the text determines equality of two circles using their radii. What is the output

23. The equals method for Circle objects defined in the text determines equality of two circles using their radii. What is the output of the following code sequence?
Circle c1= new Circle(5);
Circle c2= new Circle(5);
Circle c3= c1;
System.out.println(c1== c2);
System.out.println(c1== c3);
[1] true true[2] true false[3] false true[4] false false

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!