This question is regarding memory management & GC in java.
Since java does not have true static classes like C#, what is the scope of static members in a class such as below:
public class Test {
public static String myVariable;
}
Lets say Test.myVariable is set / called in another class Foo.
Is Test.myVariable kept alive for as long as Foo is alive?
OR
Will Test.myVariable be kept alive for as long as the application domain is ?
When would myVariable go out of scope ?