Hi everybody! I never posted to this site but I am a frequent visitor to this page.I have just returned from the exam. It took me 1 hour and 22 minutes to answer questions, I had only 8 minutes for revision. I had a lot of questions on language fundamentals. The distribution of questions topic wise is almost as in mock exams.(Markus Green etc). No questions on MediaTracker, Socket etc,. One question seems to be was directly from Sun's examples! I had one fill-in questions, rest multiple choices. A lot of questions (80-90%) had code, sometimes 4-5 lines, usually 6-10. Difficulty level. My personal impression that generally questions were similar to mock exams questions (Some are easier than mock exam questions of Marcus Green exams etc.,)Questions were good worded. They were not tricky. I feel that probably each section has 1-2 very basic simple question, 1-2 �advanced� and rest of them of average difficulty. I answered four questions wrongly. In Threads and synchronization I got a tough question. I had 100% on all sections, except: Flow control and exception handling � 85% Language fundamentals -�88% Threads � 85% - 75% awt package I answered 55 questions correctly(One wrong in each of the above sections). Thanks to all moderators and especially to Maha Anna for her valuable collection of information in her web page. Ravi Thupil
Congratulations Ravi Thupil, Hi, you got a good score. Please let me know what is the scheduler method for Thread. Is it Start method or public void run method. Please drop me the answer immediately. As I am going for exam on this Friday 10am. My email is firstname.lastname@example.org Thanking you, Vijayalakshmi Ravi
[This message has been edited by Vijayalakshmi Ravi (edited October 11, 2000).]
For the Question posted by Vijayalakshmi Ravi Q) Please let me know what is the scheduler method for Thread. Is it Start method or public void run method? Ans) I got the same question in a mock exam. The answer given was public void run() method. But I don't think so. run() method is only a target for a Thread (similar to a paint() method in Graphics rendering). What ever you want to be executed by a Thread shall be supplyed in a run() method ( You can call any number of other methods in run() method). A Thread Object can be created by Thread(Runnable myRunnable); constructor. Here you are giving only the target to be executed if a Thread(actual Thread not an abstract Thread object) is created and Sheduled later. start() is also may not be a Thread sheduler method. It may request the JVM to do so. As we can use only start() to do such request I suppose we can vote for start() as a Thread sheduler method.(Remember start() is also a synchronized method) I welcome any corrections in my view as I am not sure of it.
Joined: Mar 17, 2000
The question here means( IMO ) what is the method which schedules a thread for execution. The answer is <code>start()</code>. Note that when you construct a thread, it is just another Java object. Only when you call the <code>start()</code> method on the object, you get the attention of the thread scheduler. The scheduler( in JVM ) then takes notes about this new thread object and starts it when the time is right. Hope that helps, Ajith