Originally posted by Archana Annamaneni:
Thank you sri , i really didn't know that native methods end in a semicolon.
My third question is , the option B looks correct but it says a method called run()instead of saying public void run()(The definition looks correct but it didn't specify the correct signature of the method).
So I am confused whether I should choose that as a correct answer or not if it is given in the exam.
I hope I explained my doubt clearly.
Sri I have another question,right now I am preparing kathy/Bert book,do you think i should go through the JLS before I go to exam?
-Archana
Archana,
I do agree that the answer option is a bit vague, but of the given options, it seems to fit the bill.
But it is lot more clear on the exam. They take a lot of care in framing the questions.
All you have to remember is
start() method creates a call stack for the thread and moves it into *runnable* state.
run() method actually does the *actual job* which is expected to be done by the thread.
And about the book vs JLS,
In most aspects , the book was more than enough for me added with Dan's explantion of concepts in his topic exams. However, if you have any further doubts about any concepts, the first thing is to refer JLS and try it out.
At the risk of being cliched, I want to say that referrring to JLS is the best way to learn.
Hope this helps
Good luck
Sridhar