Question: owing statements, the println will print true? Set set 1 = new HashSet < > ( ) ; set 1 . add ( Atlanta

owing statements, the println will print "true"?
Set set1= new HashSet<>();
set1.add("Atlanta");
set1.add("Macon");
set1.add("Savanna");
Set set3= new LinkedHashSet<>();
set3.add("Macon");
set3.add("Savanna");
set3.add("Atlanta");
System.out.println(set1.equals(set3));
True
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 Databases Questions!