Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Interview question?

 
teja dharma
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the best answer in interview if they ask what is polymorphism? what is inheritance?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65115
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are your answers?
 
teja dharma
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to help you out, i googled a site that may help you
http://home.cogeco.ca/~ve3ll/jatutor5.htm

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.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is polymorphism possible without inheritence/relation ?
 
Campbell Ritchie
Sheriff
Pie
Posts: 49776
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seetharaman Venkatasamy wrote:is polymorphism possible without inheritence/relation ?
In my opinion, no.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic