![](https://lstatic.shangxueba.com/sxbzda/h5/images/m_q_title.png)
publicclassXimplementsRunnable(2.privateintx;3.privateinty;4.5.publicstaticvoidmain(Stri
A.Errorsatlines7and8causecompilationtofail.
B.Theprogramprintspairsofvaluesforxandythatmightnotalwaysbethesameonthesameline(forexample,“x=2,y=1”).
C.Theprogramprintspairsofvaluesforxandythatarealwaysthesameonthesameline(forexample,“x=1,y=1”.Inaddition,eachvalueappearstwice(forexample,“x=1,y=1”followedby“x=1,y=1”).
D.Theprogramprintspairsofvaluesforxandythatarealwaysthesameonthesameline(forexample,“x=1,y=1”.Inaddition,eachvalueappearsonlyforonce(forexample,“x=1,y=1”followedby“x=2,y=2”).
![](https://lstatic.shangxueba.com/sxbzda/h5/images/tips_org.png)