Java Threads Question:

Can I implement my own start() method?

Tweet Share WhatsApp

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 PDF Read All 38 Java Threads Questions
Previous QuestionNext Question
What is the difference between a threads start() and run() methods?Do I need to use synchronized on setValue(int)?