How Thread can be implemeted in code... All i know is it can be done in 2 ways either by implementing "Runnable" interface or by extending "Thread" class.
Is there any other way?? else how to answer for this question?
The JRE has many more ways to create threads than those two, although fundamentally they probably all boil down to using a Thread object. I don't know that it matters how many ways there are, although the more you can name, probably the better. If you can name only the two you mentioned, then that may indicate that either your Java knowledge is stuck in the pre-Java 5 mindset (Java 5 introduced the java.util.concurrent package, which greatly expanded Java's concurrency capabilities), or that you never implemented concurrency-heavy code.
Do you want ants? Because that's how you get ants. And a tiny ads:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop