can u give some realtime example in ploymorphism? and
inheritance?
Answer Posted / babu
Babu torati
METHOD OVERLOADING:Means suppose one man behaving different ways
suppose if is meet his wife he feels different if he meet his girl friend he feels differently means Based on person he meet his behavior will changes.
METHOD OVERRIDING:Means if father is gives some Properties to his son. ex:Bike but father says if you want to change this bike your wish otherwise continue with this bike(i.e no restriction) means gives permission throw the virtual keyword if you want change(override).
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How can we include static files in the jsp page?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
How the servlet is loaded?
What is servlet invoker?
If some new data has entered the database, explain how can a servlet refresh automatically?
Which java framework is most popular?
How we can get ip address of client in servlet?
What is servlet looping or chaining?
What is the workflow of a servlet?
How do you create a cookie using servlet?
Why is servlet used?
What is the use of attribute in servlets?
Explain the role of dispatcherservlet and contextloaderlistener.
What are the ways to handle multi-threading in servlets?
What are the exceptions thrown by servlets? Why?