It's just a simple query about the implementation mechanism of java. I want to know how Threads work in java. I mean it's just a class like other classes and implements Runnable but we can define any such class with run and start methods but it won't work like Thread class. Are there any language specifications used to identify it as a special class. If yes, please tell me how they are implemented, via compiler, interpreter or JVM?? which one recognizes and differs special classes.
There isn't anything in the Java language which treats the Thread class differently than any other class.
It's certainly true that there is native code in the Java runtime which makes Threads behave the way that they do, but that's true of a lot of other classes. For example java.io.File will have native code which allows the runtime to work with files. There's really nothing special about the Thread class.