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](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1707/5/6/4/61065c75e429e3761707564610272.jpg)
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
Im unable to view the image However I can provide an answer based on the information from your quest... View full answer
Get step-by-step solutions from verified subject matter experts
