About Question enthuware.ocpjp.v8.2.1761 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
badbishop
Posts: 27
Joined: Fri Jul 22, 2016 9:14 am
Contact:

About Question enthuware.ocpjp.v8.2.1761 :

Post by badbishop »

There is nothing in the main method that could possibly call run() method of Merger with any answer. A Merger instance is just constructed, but never used. Or am I missing something?

godfatherofpolka
Posts: 1
Joined: Tue Aug 16, 2016 2:34 pm
Contact:

Re: About Question enthuware.ocpjp.v8.2.1761 :

Post by godfatherofpolka »

Actually, the Merger instance is passed to the CyclicBarrier as the barrierAction (a Runnable "which will execute the given barrier action when the barrier is tripped, performed by the last thread entering the barrier", see https://docs.oracle.com/javase/8/docs/a ... .Runnable- ).

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests