Java Threads Question:
Download Questions PDF

Can I implement my own start() method?

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)?