What is the result?

Given:

What is the result?
A. 3 4 5 6
B. 3 4 3 6
C. 5 4 5 6
D. 3 6 4 6

Download Printable PDF. VALID exam to help you PASS.

3 thoughts on “What is the result?

  1. Answer C:

    Because “i” is static, it shares the most updated value. So after the last assignment of “i”, it became 5. Accordingly, both objects, x1 and x2, will print “i” 5.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.