Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Consider the following piece of code. (The numbers on the left margin denote line numbers.)
In line 17, r1 and r2 refer to different instances/objects.
Lines 11 and 16 increment the member variable val of different instances/objects.
Lines 11 and 16 increment the member variable val of the same instance/object.
In line 17, r2 and r3 refer to the same instance/object.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!