You have an application which executes the following lines: Thread myT = new Thread(); myT.start(); Select all of the following statements that are correct. a. The Thread myT is now in a runnable state. b. The Thread myT has the NORM_PRIORITY priority. c. The Thread will die without accomplishing anything. d. The run method in the class where the statement occurs will br executed.
The answers are a and c. Could someone please explain why? I thought all Threads are created with the normal priority (5)
I don't really agree that a is correct because of the word 'now'. Who's to say what state the thread is in 'now'. It could be runnable, running, or already dead.
Hi whya only a and c, why not d "The run method in the class where the statement occurs will br executed". This statement says that if run method exists in the same class then it will execute, which is true i suppose. badri