Question: How many objects are eligible for garbage collection immediately before the end of the main() method? A. None. B. One. C. Two. D. Three. E.

How many objects are eligible for garbage collection immediately before the end of the main() method? 

public class Tennis { public static void main(String[] game) { String[] balls

A. None.

B. One.

C. Two.

D. Three.

E. The code does not compile.

F. None of the above.

public class Tennis { public static void main(String[] game) { String[] balls = new String[1]; int[] scores = new int [1]; balls = null; scores = null; } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Im unable to view the image However I can provide an answer based on the information from your quest... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!