can u give some realtime example in ploymorphism? and
inheritance?

Answer Posted / nazneen

Polymorphism applies to Overriding
Inheritance applies to Reusability of code defined earlier in one Class and later on used by Other Classes..

Is This Answer Correct ?    14 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different ways we can maintain state between requests?

560


How can the session in servlet can be destroyed?

697


What do you mean by httpservlet and how it is different from the genericservlet?

530


How do I use cookies to store session state on the client?

523


What are the steps that are required to handle the multi-threading?

580






What is the use of httpservletrequestwrapper?

578


What is the use of attribute in servlets?

533


What are all the protocols supported by httpservlet?

640


Explain in brief the directory structure of a web application?

555


How do you deal property files in servlet?

590


Differentiate between the print writer and servlet output stream?

547


What is the use of httpservletresponsewrapper?

522


What exactly is a servlet?

533


What is difference between server and servlet?

567


What is the difference between genericservlet and httpservlet

573