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
Can you send an authentication error from a servlet?
How will two or three servlets interact or communicate with each other?
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?
How servlet is created?
How can I send user authentication information while making URL Connection?
What’s the difference between sendredirect and forward methods
What are the uses of servlets?
What are the key methods that are involved in processing of http servlets?
What exception should be thrown when servlet is not properly initialized?
Explain the difference between a web server and a web container?
What is the effective way to make sure all the servlets are accessible only when user has a valid session?
Explain web container.
Are Servlets Thread Safe? How to achieve thread safety in servlets?
What is the difference between sendredirect() and forward() in a servlet?
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 >>