• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Devaka Cooray
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

Garbage collection

 
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The portion of the question is from Whizlabs.
Which is the first statement where the object originally held in m, may be garbage collected
Question is Line 6 or 7 ?
Answer is 7. Why ?? I feel after 6 and before 7. Please advice how should I interpret this ?
 
Ranch Hand
Posts: 2066
IntelliJ IDE Clojure Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Harikrishna Gorrepati wrote:The portion of the question is from Whizlabs.
Which is the first statement where the object originally held in m, may be garbage collected
Question is Line 6 or 7 ?
Answer is 7. Why ?? I feel after 6 and before 7. Please advice how should I interpret this ?


You are correct, after the line 6, it'll be GCed. But, in this question, there is no answer such as after 6 and before 7. So, we should select in line 7 as the answer. because, that's not definitely on line 6.
 
I don't get it. A whale wearing overalls? How does that even work? It's like a tiny ad wearing overalls.
Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders
https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing
reply
    Bookmark Topic Watch Topic
  • New Topic