What is the result?

Given the code fragment:

What is the result?
A. 10 : 10
B. 5 : 5
C. 5 : 10
D. Compilation fails

Download Printable PDF. VALID exam to help you PASS.

3 thoughts on “What is the result?

  1. Answer C is correct
    Because “count” is static, so its updated value is shared among all the instances, while “i” is an instance variable, so it is specific per instance.

  2. Answer A:

    Because “count” is static, so its updated value is shared among all the instances, while “i” is an instance variable, so it is specific per instance.

Leave a Reply

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


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