• 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

Javacertificate

 
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


What is the disadvantage of subclassing the Thread class? [Check all correct answers]
1. You cannot subclass another class.
2. You can only subclass one class.
3. The Thread runs in another JVM.


Answer: 1,2
According to the given senario, if we subclass Thread, then we cant extend any other class. Can anyone explain how 2 is also the right answer?
Thanks.
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i thunk the prob is with the wordings, its kinda ambigous.
u sure 're right that java dont support multiple inheritance and i am in
no mood to bottle up excuses on what i thunk they was trying to say.
 
Cathy Song
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Jo. Even I thought the wording was vague. I just needed a second opinion.
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

2. You can only subclass one class.


This option is not a disadvantage of sub classing a Thread. I would not choose 2. I think Dan should change the wording in the option or remove 2 from the answer list.
 
Cathy Song
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This question is from javacertificate.com. This is not one of Dan's.
Thanks.
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey,
2. You can only subclass one class.

actually means you can subclass only the Thread class and no other class.
Kind regards,
Anish Doshi
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Cathy,
Could u give me link to Jiris mock exams.
Thanks in advance.
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think option '2' has no relation with the question. So it should not be part of the 'right answer'.
 
Cathy Song
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Mona Gadkari:
Hello Cathy,
Could u give me link to Jiris mock exams.
Thanks in advance.


Here you go..
http://www.jiris.com/mockexam
Good Luck
 
reply
    Bookmark Topic Watch Topic
  • New Topic