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?
About Question com.enthuware.ets.scjp.v6.2.272 :
Moderator: admin
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.272 :
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.
HTH,
Paul.
-
- Posts: 57
- Joined: Sat Mar 01, 2014 1:48 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.272 :
I find this one a but confusingly worded.
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.
in which case, option 4 should be correct.admin wrote:but the given program code itself just creates one.
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.
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.272 :
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.
HTH,
Paul.
Who is online
Users browsing this forum: No registered users and 34 guests