File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Interview question? 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 » Java » Beginning Java
Bookmark "Interview question?" Watch "Interview question?" New topic

Interview question?

teja dharma
Ranch Hand

Joined: Feb 07, 2009
Posts: 51
what is the best answer in interview if they ask what is polymorphism? what is inheritance?

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63540

What are your answers?

[Asking smart questions] [About Bear] [Books by Bear]
teja dharma
Ranch Hand

Joined: Feb 07, 2009
Posts: 51
Bear Bibeault ,I don't know.What is the best answer if they ask these questions.What would you say if they ask the same questions to you?
David Newton

Joined: Sep 29, 2008
Posts: 12617

Bear's point is that we're not just going to hand out an answer: you need to ShowSomeEffort.

If *I* was asked that question I'd walk out of the interview, because they're obviously not looking for a developer of my experience level.
Nilesh Tailor

Joined: Apr 30, 2010
Posts: 1
to help you out, i googled a site that may help you

Polymorphism and Inheritance are directly connected in OOP so if you dont know it then I would take some time in understanding how to properly create objects, abstract classes, interfaces, etc.

What the world needs now is a better Java IDE
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

is polymorphism possible without inheritence/relation ?
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45292
Seetharaman Venkatasamy wrote:is polymorphism possible without inheritence/relation ?
In my opinion, no.
It is sorta covered in the JavaRanch Style Guide.
subject: Interview question?
It's not a secret anymore!