| Forums.Sureshkumar.net : A Perfect Place to Share Knowledge Blogs Games Magazines |
|
|
#1 (permalink) |
|
Member
Join Date: Feb 2006
Location: India
Posts: 89
Thanks: 0 Thanked 1 Times in 1 Posts Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 3
|
SCJp Question
Which two CANNOT directly cause a thread to stop executing? (Choose Two) A. Calling the yield method. B. Calling the wait method on an object. C. Calling the notify method on an object. D. Calling the notifyAll method on an object. E. Calling the start method on another Thread object. please answer this question |
|
|
|
|
|
#2 (permalink) |
|
Member
Join Date: May 2007
Location: Bangalore
Posts: 37
Thanks: 1 Thanked 0 Times in 0 Posts Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 2
|
Re: SCJp Question
Hi friends,
yield method to cause for runnning a sleep thread. notify also do same means it starts the thread which is in waiting state. notify all does start all waiting threads.
__________________
Thanks & Regards, Deepesh The Language of Friendship is not Words but Meanings.... |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TATA ELAXSI placement paper 2 | sridhar | TATA ELXSI Placement Papers | 0 | 12-02-07 04:10 PM |
| INFOSYS Placement paper 119 | sridhar | INFOSYS Placement Papers | 0 | 08-02-07 03:39 PM |
| Interview questions you may be asked | yathish | HR Questions | 6 | 24-12-06 08:35 PM |
| SCJP Question - 14 | wizkid | JAVA Technologies | 1 | 12-08-06 11:53 PM |
| SCJP Question | wizkid | JAVA Technologies | 4 | 10-07-06 07:40 PM |