Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > JAVA Technologies
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 24-05-07, 03:57 PM   #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 qaisar has disabled reputation
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
qaisar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 30-05-07, 06:56 PM   #2 (permalink)
Member
 
deepesh's Avatar
 
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 deepesh is on a distinguished road
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....
deepesh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT +6.5. The time now is 02:09 PM.





Search Engine Optimization by vBSEO 3.1.0