多选题 Given:
2. public class Pregnant extends Thread {
3. int x = 0;
4. public static void main(String[] args) {
5. Runnable r1 = new Pregnant();
6. new Thread(r1) .start();
7. new Thread(r1) .start();
8. }
9. public void run() {
10. for(int j = 0; j < 3; j++) {
11. x = x + 1;
12. x = x + 10;
13. System.out.println(x + " ");
14. x = x + 100;
15. } } }
If the code compiles, which value(s) could appear in the output? (Choose all that apply.)
【正确答案】 A、B、C、D、E、F
【答案解析】