Question: Which values are marked for deallocation after the sequence? Integer obj 1 = new Integer ( 1 0 ) ; Integer obj 2 = new

Which values are marked for deallocation after the sequence?
Integer obj1= new Integer(10);
Integer obj2= new Integer(20);
Integer obj3= obj2;
Integer obj4= new Integer(40);
obj2= null;
obj4= obj1;

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!