Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Mock exam  question is-a relationship Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Mock exam  question is-a relationship" Watch "Mock exam  question is-a relationship" New topic

Mock exam question is-a relationship

Jagdev Singh
Ranch Hand

Joined: Jan 12, 2010
Posts: 71

I have following statement from answer of one question from K&B cd Master exam 1.
is-a relationship always rely on polymorphism.

According to exam it is correct.
But according to me polymorphism always rely on is-a relationship (inheriatnce).
Correct me if I am wrong.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Mock exam question is-a relationship
It's not a secret anymore!