Java Threads Question:

Download Job Interview Questions and Answers PDF

Can I implement my own start() method?

Java Threads Interview Question
Java Threads Interview Question

Answer:

The Thread start() method is not marked final, but should not be overridden. This method contains the code that creates a new executable thread and is very specialised. Your threaded application should either pass a Runnable type to a new Thread, or extend Thread and override the run() method.

Download Java Threads Interview Questions And Answers PDF

Previous QuestionNext Question
What is the difference between a threads start() and run() methods?Do I need to use synchronized on setValue(int)?