K
Kaspar Minosiants
Hi !
i've been perplexed about a thread life cycle
there is question from preparation to SCJP 1.4
------------------------------------------------------
which of the following is true regarding main Thread
1. It's the thread from which other child threads wil be spawned
2. It must be the last thread to finish execution. When the main thread
stops , the program terminates.
3. It has highest priority
4. main is not a thread .
-------------------------------------------------------
correct answers are 1 & 2
i'm curious about the second answer [ When the main thread stops , the
program terminates. ]
is it realy true ?
Thanks a lot !
i've been perplexed about a thread life cycle
there is question from preparation to SCJP 1.4
------------------------------------------------------
which of the following is true regarding main Thread
1. It's the thread from which other child threads wil be spawned
2. It must be the last thread to finish execution. When the main thread
stops , the program terminates.
3. It has highest priority
4. main is not a thread .
-------------------------------------------------------
correct answers are 1 & 2
i'm curious about the second answer [ When the main thread stops , the
program terminates. ]
is it realy true ?
Thanks a lot !