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
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
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Programmer Certification (OCPJP)
page# 616 question# 10
manny singh
Greenhorn
Posts: 28
posted 15 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 15 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 15 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 15 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 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
this is a question of k&b book
Don't get me started about those stupid
light bulbs
.
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...