This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
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)
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