can u give some realtime example in ploymorphism? and
inheritance?
Answer Posted / srinu
polymorphism: Polymorphism one form existing many forms is
called polymorphism.its used for over ridding.
EX:Man
Because A Man go to office he is an Employee.
A Man go to movie he is an auditor.
A man walk with his lover she's boy friend
inheritance is hierarchy of class,that is one class derived
from another class
EX:
grant father
--father
--son
Is This Answer Correct ? | 19 Yes | 8 No |
Post New Answer View All Answers
Servlet is pure java object or not?
What is the GenericServlet class?
What is httpservlet and how it is different from genericservlet?
Explain the difference between servletconfig and servletcontext in servlet?
What is a servlet-to-servlet communcation?
What is the difference between Servlets and Applets?
What are the drawbacks of cgi?
What are the types of an http request?
What is lazy loading and what is Generic Servlet Class?
Which http method is said to be non-idempotent and idempotent?
What is meant by a web application
What is servlet interface?
What is the difference between jsp and servlet life cycle?
Difference between GET and POST?
I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>