This is a dum question, but I could not figure it out. Please shed a light.
Why are
get str: null and
test2Str: null, if I use non-static for
private String str2; in class Test2.
Only If I use static, the string will not be null. This occurs in my project, I cannot use static. Please help.
the output as below:
set string: this is a test2
get str2: null
test2Str: null
--------------------------------------------------------------
-------------------------------------------------------------------------