I create a stream using
Thread t = new Thread();
t.start();
You start the stream using t.start (); Now, how long will the stream live? In what state will it go after X (answer to the indicated question) seconds?
Thread t = new Thread();
t.start();
public void run(){
System.out.println("Threads");
}
What happens if a thread has a run () method?
source
share