1. class X {
2. static long story;
3. public static void main(
String [] args) {
4. if(story==0) {
5. Long tale = 343L;
6. story = go(tale);
7. }
8. // do stuff
9. System.out.print(story);
10. }
11. static long go(Long t) { return t++; }
12. }
Which is true?
A) The output is 344.
B) Compilation fails due to an error at line 5 or Line 11.
C) At line 8, an object which tale refers tois eligible for garbage collection.
D) At Line 11, two objects eligible for garbage collection.
E) At Line 8 two objects eligible for garbage collection.
ANSWER C
Why isn't the answer A since there is a print statement?
Also, why not D since the method also uses Integer just as line 8?