Multi Threading

© examsiri.com
Question : 3 of 44
 
Marks: +1, -0
Given:
public class TestSeven extends Thread {
  private static int x;
  public synchronized void doThings() {
   int current = x;
   current++;
   x = current;
  }
  public void run() {
   doThings();
  }
}

Which statement is true?
Go to Question: