About Question com.enthuware.ets.scjp.v6.2.272 :

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

Moderator: admin

Post Reply
ETS User

About Question com.enthuware.ets.scjp.v6.2.272 :

Post by ETS User »

This one of this question which I don't know how to treat.

I think about this anwser: "1 new thread is created by the program."

Is not it true that when we run an application using main method at least one thread is created?

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

Re: About Question com.enthuware.ets.scjp.v6.2.272 :

Post by admin »

Actually, the JVM may several threads such as a main threads and a GC thread but the given program code itself just creates one.

HTH,
Paul.

TwistedLizard
Posts: 57
Joined: Sat Mar 01, 2014 1:48 pm
Contact:

Re: About Question com.enthuware.ets.scjp.v6.2.272 :

Post by TwistedLizard »

I find this one a but confusingly worded.
admin wrote:but the given program code itself just creates one.
in which case, option 4 should be correct.

Or, should I think that the program == main thread, and the program ie the main thread, creates no further threads?

Seems I could argue either way.

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

Re: About Question com.enthuware.ets.scjp.v6.2.272 :

Post by admin »

Questions asked in the OCPJP 6 are not as clear and unambiguous as Java 7 and later. So if you are taking OCPJP 6, you should try not to read too much into the question. Use the simplest of interpretations.

HTH,
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests