variable lifetime

  1. O

    Android Question Can anyone explain why my code has this output?

    Hello, everyone, here's a code snippet that I failed to understand. I don't get why variable mylist still has access to the data of variable lst even if sub t1 is finished. Does this mean that the memory for and data of variable lst isn't released immediately after t1? '-------in main...