Question: What is the benifit of using @VisibleForTesting annotation?

  1. to denote that a class, methos, or field has its visibility relaxed to make code testable
  2. to denote that a class, method, or field is visible only in the test code
  3. to denote that a class, method, or field has its visibility increased to make code less testable
  4. to throw a run-time error if a class, methos, or field with this annotation is accessed improperly

Answer: The correct answer of the above question is Option A:to denote that a class, methos, or field has its visibility relaxed to make code testable