Given from
scjp
There are some questions which i made up myself to
test how i understand about the
thread issue and I really need some experts to confirm about it.
Question 1 :At line 3, how many threads we have now ?
my answer is
Question 2 : At line 4, after t1.start(), which thread will be execute first.
My answer is
Question 3 :what t1.join() does ?
my answer is
What I am thinking is t.join() joins the current thread to the end of t so that when t finishes the current thread can run again. However, which one is the current thread now. That is why I am stuck
Please help me. I appreciate