Java / Java Multithreading part II
Can you override Thread start method?
Yes, however doing so invoking start method will execute start on the same thread and it will neither create new thread nor call run method.
In the above program, both the run and start method are overridden. Some may expect that the start method will invoke the run method but it won't. Invoking start method works like any other method and will not invoke run method at all.
More Related questions...
orWhat is JVM tiered compilation? Types of thread in Java. Is JVM a process or thread? Can you clone a Thread? What is effectively immutable in Java? What is busy spinning in Java? Explain cache coherence protocol.