Question: Java code please help ASAP! You dont need to test your code. I will give you a thumb up if you help me 8. [6pts]

Java code please help ASAP! You dont need to test your code. I will give you a thumb up if you help meJava code please help ASAP! You dont need to test your code.I will give you a thumb up if you help me 8.

8. [6pts] For the below code, write what is printed on the below lines. List list = new LinkedList(); list.add("Cheetah"); list.add("Hippo"); list.add("Tiger"); List second = list; List other = new LinkedList(); other.add("Cheetah"); other.add("Hippo"); other.add("Tiger"); 1. System.out.println(list == second); 2. System.out.println(second == other); 3. System.out.println(list == other); 4. System.out.println(list.equals (second) ); 5. System.out.println(second.equals (other)); 6. System.out.println(list.equals (other)); 2. 3. 6. 6. Grocery Store Food Drink Cleaning Supplies Produce Milk Soda

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!