1Z0-852 Web TestEngine demo

Exit VCEDump 1Z0-852 Java Standard Edition 6 Programmer Certified Professional Upgrade
Question 4 of 15
0% complete
Q4 Multiple choice

Given:

11. public class PingPong implements Runnable {
12. synchronized void hit(long n) {
13. for(int i = 1; i < 3; i++)
14. System.out.print(n + "-" + i + " ");
15. }
16. public static void main(String[] args) {
17. new Thread(new PingPong()).start();
18. new Thread(new PingPong()).start();
19. }
20. public void run() {
21. hit(Thread.currentThread().getId());
22. }
23. }

Which two statements are true? (Choose two.)

Select all that apply.

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in