This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Boonie's Exam: 47 - mistake?? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Boonie Watch "Boonie New topic
Author

Boonie's Exam: 47 - mistake??

Alfred Kemety
Ranch Hand

Joined: Aug 14, 2002
Posts: 279
In Boonie's Exam part 3, question 47 is answered wrong I think, actually there is no right choice in the choices it has. It goes
What appears in the standard output when you run the Dots class?

a- nothing
b- 100 dots (.)
c- 200 dots (.)
d- 100 dashes (-)
e- 100 dots (.) and 100 dashes(-)
His answer was:
Question 47: a. The thread's with start() method is never invoked. (This is not an applet, so init() is not automatically invoked.) (See chapter 12.)
-------
Ah, well first of all, the code will never compile since the class Dots that implements the Runnable interface didn't supply an implementation for the abstract run() method in the interface Runnable and thus should be declared abstract itself... or the code won't compile, right?? or am I missing something?


Alfred Raouf - Egypt - SCJP 1.4<br />Kemety.equals(Egyptian) // returns true
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
I agree with you, Dots has no run() method, and is
not declared abstract. So it's not gonna compile!
I guess Boonie skipped his beta testing...
-Barry


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Jose Botella
Ranch Hand

Joined: Jul 03, 2001
Posts: 2120
You are right. It will not compile.


SCJP2. Please Indent your code using UBB Code
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Boonie's Exam: 47 - mistake??
 
Similar Threads
Thread Doubts
Boone's mock exam Q47
Threads Priority values
Reg. Runnable
reg a mock exam