Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Pipeline as Code
this week in the
Cloud/Virtualization
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Jeanne Boyarsky
Bear Bibeault
Sheriffs:
Rob Spoor
Henry Wong
Liutauras Vilda
Saloon Keepers:
Tim Moores
Carey Brown
Stephan van Hulst
Tim Holloway
Piet Souris
Bartenders:
Frits Walraven
Himai Minh
Jj Roberts
Forum:
Programmer Certification (OCPJP)
page# 616 question# 10
manny singh
Greenhorn
Posts: 28
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
why (d) and (e) options are not correct?
please explain.
Sandeep Bhandari
Ranch Hand
Posts: 201
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Kindly show us the question!!
SCJP 96% | SCWCD 90%|
SCJP mock exams
|
My SCJP blog
manny singh
Greenhorn
Posts: 28
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
interface Hungry<E> interface Carnivore<E extends Animal>extends Hungry<E> {} interface Herbivore<E extends Plantnds Hungry<E> {} abstract class Plant{} class Grass extends Plant{} abstract class Animal{} class Sheep extends Animal implements Herbivore<Sheep>{ public void munch(Sheep x){} } class wolf extends Animal implements Carnivore<Sheep>{ public void munch(Sheep x){} }
(d) change the Sheep class to:-
class Sheep extends Plant implements Carnivore<Wolf>{ public void munch(Wolf x){} }
(e) change the Wolf class to:-
class Wolf extends Animal implements Herbivore<Grass>{ public void munch(Grass x){} }
Dinesh Tahiliani
Ranch Hand
Posts: 486
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Can you please expalin in detail on this. Please....
Thanks<br />Dinesh
manny singh
Greenhorn
Posts: 28
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
this is a question of k&b
book
She's brilliant. She can see what can be and is not limited to what is. And she knows this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
threads?
isELIgonred in HFS in chapter USING JSP in Mock Exam
Doubt on EL (question 6 on chapter 7 cofee cram in HFSJ)
Errata in HFSJ
Doubt on EL Expression
More...