• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Boonie's Exam: 47 - mistake??

 
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are right. It will not compile.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic