Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes awt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "awt" Watch "awt" New topic
Author

awt

nishesh chouhan
Ranch Hand

Joined: Nov 06, 2000
Posts: 37
I have doubts in following questions
1)which of the followuing can be added to the menu
checkbox
menu
menubar
button

does it had something to do with the inheritance hirarchy??? so that we can know by that
2) which of the following will definitely stop the thread from execuiting
suspend
wait
sleep
yield
sona gold
Ranch Hand

Joined: Feb 14, 2001
Posts: 234

1)which of the followuing can be added to the menu
checkbox
menu
menubar
button
only menu is the right answer, checkbox is wrong, checkboxmenuitem if given would be the right answer.

does it had something to do with the inheritance hirarchy??? so that we can know by that
2) which of the following will definitely stop the thread from execuiting
suspend
wait
sleep
yield
[/B]
wait
suspend
sleep

sona<br />SCJP
nishesh chouhan
Ranch Hand

Joined: Nov 06, 2000
Posts: 37
but what does stop here means wait and sleep does not stop the thread they only stop their execution temporarily
so inwhat context the question is asked
and if that is the case then yield also stops temporarily
???
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: awt
 
Similar Threads
How to get user input?
Menu Bar
Help required about parsing and populating a bean
Is Exam Cram correct or RHE correct?
How to handle events from multiple sources?