Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MindQ 38,40  RSS feed

 
shree vijay
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
38. What line of code would begin execution of a thread named myThread?
40. What class defines the wait() method?

I answered the above questions as myThread.start()
and java.lang.Object. But i got both of them wrong. I am not able to verify all the explanations for the MindQ questions.
Any clarifications?


------------------
Regards,
Shree
 
Randall Twede
Ranch Hand
Posts: 4594
6
Java Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
looks like the test is wrong to me. your answers are correct.
 
shree vijay
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
Shree
 
Jane Griscti
Ranch Hand
Posts: 3141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shree,
Think both of your answers are correct and MindQ is in error.
I'm going to transfer this to the Mock Exam Errata forum

------------------
Jane
The cure for boredom is curiosity.
There is no cure for curiosity.
-- Dorothy Parker
 
Randall Twede
Ranch Hand
Posts: 4594
6
Java Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for queston 40 i said Object and got it right. certainly java.lang.Object is also correct. for 38 it seems he expected a semicolon at the end.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!