Correct Answer: A
Explanation/Reference:
Explanation/Reference:
Download Printable PDF. VALID exam to help you PASS.
3 thoughts on “What is the result?”
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.
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.
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.
Answer is A
B