To create a custom thread class by extending java.lang.Thread.
Which of the following must you do?
run()
. start()
. B.
Your class should provide a run()
method to implement the desired functionality.
There is no need to declare that it implements Runnable.
Overriding start()
is not a good idea.
You need to provide synchronized access to data only if that data might be corrupted by other threads.