Question: I have two references object 1 and object 2 . I want to modify these references such that object 1 = = object 2

I have two references object1 and object2. I want to modify these references such that "object1== object2" is true. Which line of code will accomplish this task? (Select one below).
A. objectl.toString().equals(object2.toString());
B. object 1== object2;
C. objectl = object2;
D. object 1= true;
E. objectl.equals(object2);
 I have two references object1 and object2. I want to modify

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 Databases Questions!