Two Laptop Bag
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes simple has-a question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "simple has-a question" Watch "simple has-a question" New topic

simple has-a question

Komal Arora
Ranch Hand

Joined: Sep 30, 2010
Posts: 91

in the master-exam-B of K&S book

"Has-A relationships are always defined with instance variables"
statement is given as false because static instances can also define has-a relationships.

in the master-exam-C of K&S book

"Has-A relationships always rely on instance variables"

statement is given true

aren't both the statements the SAME?

I agree. Here's the link:
subject: simple has-a question
It's not a secret anymore!