This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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?

Consider Paul's rocket mass heater.
subject: simple has-a question
Similar Threads
Has-a relationship
has-a relationship
Jar file statement (true or false)
has-a and static variables
Confused with a particular sentence in Kathry's and Bert's Book