Page 1 of 1

About Question enthuware.ocpjp.v8.2.1282 :

Posted: Sat Nov 28, 2015 3:41 pm
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?

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

Posted: Sat Nov 28, 2015 9:03 pm
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.

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

Posted: Sun Nov 29, 2015 3:38 am
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 :).