About Question enthuware.ocpjp.v8.2.1282 :

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

Moderator: admin

Post Reply
lveto15
Posts: 27
Joined: Tue Sep 22, 2015 1:01 pm
Contact:

About Question enthuware.ocpjp.v8.2.1282 :

Post by lveto15 »

I understand the explanation but cannot reproduce this situation. What do you mean as scheduler - ScheduledExecutorService? I have adopted BeeperControl from API and when it is run no exception is thrown. Instead prompt is displayed.

Can you extend this question a bit?

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

Scheduler is a generic term that implies that a program is kicked off at a predefined time(s) automatically. For example, a windows service, a windows task scheduled by the task scheduler, or a cron job in *nix.
Such a job does get a console because it is not started from a console.
In Java, javaw.exe is used for this purpose instead of java.exe
It has nothing to with threads.

HTH,
Paul.

lveto15
Posts: 27
Joined: Tue Sep 22, 2015 1:01 pm
Contact:

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

Post by lveto15 »

Thanks for the extra explanation.
I have checked it using windows task scheduler and only when it was run via javaw the result was as presented in the question-answer. When it was run via java, prompt was presented.
The meaning of the question is obvious, still it is a bit more deceptive than others :).

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests