The implementation runin Threadjust calls Runnableprovided in the constructor, if any. You override this code, so if the new thread just has its own method run, called independently, is Runnableignored. Of course, you should be able to look at the source code to verify that ... (I just did this, and until I post the source here, it does exactly what I described).
, , - . Thread , . , Thread . , , , ;)
EDIT: , . start() :
; Java .
run() :
Runnable, Runnable object run; .
, run() start(), run(), , Runnable, .
, :
Thread t = new Thread(r) {
public void run() {
super.run();
System.out.print("Dog");
}
};
"CatDog".