public class Test026
{
static Test026 t = new Test026();
String str;
public static void main(String args[]) {
Test026 t = new Test026();
t.method("0");
}
void method(String str) {
str = str;
System.out.println(str);
System.out.println(t.str);
System.out.println(this.str);
}
}
-----------------------------------------------------------------------
A: The output is:
0
null
null
B: The output is:
0
0
0
C: The output is:
0
0
null
D: The output is:
0
null
0
what is the answer? The mock exam says A... I thought it wud be D