The question says that what is the oputput of this program
public class TestClass implements Runnable
{
int x = 5;
public void run()
{
this.x = 10;
}
public static void main(
String[] args)
{
TestClass tc = new TestClass();
new
Thread(tc).start(); // 1
System.out.println(tc.x);
}
a) 5
b) 10
c) will not compile
d) Exception at run time
e) output cannot be determined
JQ+ says the answer is e . i thought the answer will be 10 but when i ran the program the answer was 5. i am sooooo confused can someone help me please