File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

K & B doubt (SCJP 1.5)

 
Bharat Makwana
Ranch Hand
Posts: 107
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello EveryOne,

Chapter 2, Question 1, page : 158.

The Question is that "Which of the following are true ?"(Questions is about has-a relationship) and the answer given is

B. Has-a relationship always rely on instance variables.

I think we can also use static variables for has-a relationship.

(Actually, in Kathy's bonus examination,there was one question about has-a relationship and one of the options of that question was "has-a relation always rely on instance variables". But in examination's answer book she has given explanation that "you can also use static variables in has-relationship")

So there is contradiction between these two answer. If anyone has more information on this please,inform me. I have also seen Errata given by Bert Bates, but this is not reported in that.

Thanks
[ June 21, 2007: Message edited by: Bharat Makwana ]
 
Bharat Makwana
Ranch Hand
Posts: 107
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone noticed it. Please tell me.
 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use search facility of Ranch. There has been discussion over this topic
hundreds of times.



Thanks,
 
Bharat Makwana
Ranch Hand
Posts: 107
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well Chandra

I have searched and in no there any clear explanation.

And it's also not mentioned in Errata

Thank You
[ June 21, 2007: Message edited by: Bharat Makwana ]
 
Sasha Ruehmkorf
Ranch Hand
Posts: 115
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bharat.

You could find discussion about this topic here:
http://www.coderanch.com/t/263314/java-programmer-SCJP/certification/HAS-Relationship
or here:
http://www.coderanch.com/t/262463/java-programmer-SCJP/certification/Clarification-Sefl-test-book
or here:
http://www.coderanch.com/t/258840/java-programmer-SCJP/certification/Has-relationship
or here:
http://www.coderanch.com/t/253284/java-programmer-SCJP/certification/has-static-variables

But I am sorry, you won't find a definitive answer to your question there. Maybe because there is none as there is no clear definition of the term has-a-relationship? I would suggest to forget about this question for the moment. In the exam you will be faced with questions that have definitive answers!
[ June 22, 2007: Message edited by: Sasha Ruehmkorf ]
 
Bharat Makwana
Ranch Hand
Posts: 107
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Sasha,

Because of following I have posted this Question

(Actually, in Kathy's bonus examination,there was one question about has-a relationship and one of the options of that question was "has-a relation always rely on instance variables". But in examination's answer book she has given explanation that "you can also use static variables in has-relationship")

Anyway thank you
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic