1.

Using which annotation non visible or private method can be tested?(a) @VisibleForTesting(b) @NonVisibleForTesting(c) @Visible(d) @NonVisibleThe question was posed to me in an internship interview.Question is taken from Annotations topic in section Application Lifecycle & Annotations of Java

Answer»

Right CHOICE is (a) @VisibleForTesting

The explanation: USING @VisibleForTesting annotation private or NON visible METHOD can be tested.



Discussion

No Comment Found

Related InterviewSolutions