I think c is fine. Yes, the constructor for thread only takes
runnable. But class Thread also implements runnable interface.
So, c could be the answer.
Originally posted by shree vijay:
Hi,
Thread t = new Thread(new RunHandler())
a. RunHandler must implement Runnable
b. RunHandler must extend Thread.
c. either a or b
d. both a and b
I chose a. I checked out the api doc too. But it says c. Which is correct.