Page 1 of 1

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

Posted: Sun Dec 04, 2011 2:37 pm
by ETS User
This class extends Thread and isDone() method is called on it's instance. Where is the isDone method defined? I can't find it in the Thread class?

if(jt.isDone()) System.out.println(jt.getData());

Is it suppose to be isAlive()?

Thanks.

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

Posted: Sun Dec 04, 2011 4:33 pm
by admin
This method is a user defined method in JerkyThread class. (See the code given for JerkyThread)

HTH,
Paul.