• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Javacertificate

 
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
Thanks Jo. Even I thought the wording was vague. I just needed a second opinion.
 
Ranch Hand
Posts: 8934
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!