This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes K&B LearnKey Exam Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "K&B LearnKey Exam" Watch "K&B LearnKey Exam" New topic
Author

K&B LearnKey Exam

Vyas Sanzgiri
Ranch Hand

Joined: Jun 16, 2007
Posts: 686

  • is-a relationships always rely on inheritance
  • is-a relationships always require at least two class types
  • is-a relationships always rely on polymorphism


  • I do not understand point 2 and 3. Please explain


    ===Vyas Sanzgiri===
    My Blog
    Amey Chitre
    Greenhorn

    Joined: Mar 18, 2009
    Posts: 9
    Is-A requires two class types - this can be explained on the basis of 1st point Inheritance means class A extends B means Class A IS-A B
    Also interfaces are like abstract classes interface A implements B ie it requires atleast two class types two show the IS-A relationship


    Use of Inheritance means code reuse or use polymorphism thats why IS-A relys on polymorphism

    would really appreciate some more people comment on this


    Amey Chitre


    SCJP
    Ankit Garg
    Saloon Keeper

    Joined: Aug 03, 2008
    Posts: 9189
        
        2

    Well Is-A relationship doesn't require two classes always. When you extend an interface from another or implement an interface in a class, then there is none and 1 class involved respectively...


    SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
    Vyas Sanzgiri
    Ranch Hand

    Joined: Jun 16, 2007
    Posts: 686

    Which proves that there are mistakes in the K&B exam. I found at least 3-4 mistakes per exam. Please be careful while reviewing.

    Another disaster is in the MusicPlayer class the jar given in the question is mp.jar but the answers have cp.jar as the correct answer!!
     
    I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
     
    subject: K&B LearnKey Exam
     
    Similar Threads
    Confused with a particular sentence in Kathry's and Bert's Book
    MasterExam OO question
    A problem about IS-A
    Pls explain this OO question
    Question about is-a and use of English language on the exam