**************
public class
Test {
private
String name;
private static String bigName;
public static void main(String[] args) {
Test test = new Test();
String myName = args[0];
this.name = myName;
test.changeName(name);
}
public void changeName(String name) {
String anotherName = name + " " + name;
...
}
}
**********
For the above simple code, if I invoke several "java Test .." at the same time on a unix machine, for example if I do
java Test steve
java Test jon
java Test mark
at the same time, then will the following variables be
thread safe ?
1. bigName (class var)
2. name (instance var)
3. anotherName (local var)
thanks,