Sahil Kapoor wrote:
Which of these classes are valid threads ?
Correct option is :- class Big4 implements Runnable { public void run() {}}
IMO :- It is not a Thread since it is not extending Thread class ???
question is not clear! if it would be Which of these classes are valid to start a thread on that? then Big4 is ok. in
java every object is a thread, means all the object[ which are extends Thread or implements Runnable]can be accessible by threads. actually, Runnable gives the thread design to a class such as it must implement run method. and of course you can implement your own thread creation in that class like java.lang.Thread. but in general , you need java.land.Thread class to start a thread