Question: What is output?Integer value 1 = new Integer ( 2 0 ) ;Integer value 2 = new Integer ( 2 0 ) ;if ( value

What is output?Integer value1= new Integer(20);Integer value2= new Integer(20);if(value1== value2){ System.out.print("equal values");}else { System.out.print("not equal references");}if(value1.equals(value2)){ System.out.print(" and equal values");}else { System.out.print(" and not equal references");}Question 32 options:equal values and not equal referencesequal values and equal valuesnot equal references and not equal referencesnot equal references and equal values

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!