can u give some realtime example in ploymorphism? and
inheritance?
Answer Posted / mani
Human being life is the best example for ploymorphism bcoz
Let one take example
im a son of my parents and also brother of my sister and
the employee of one company ...
Im playing the many role here.
Same example for inheritance also bcoz i have inherited my
father property.
Is This Answer Correct ? | 58 Yes | 4 No |
Post New Answer View All Answers
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
When to use doget() and when dopost()?
How can we refresh automatically when new data is entered into the database?
What is the web server used for running the Servlets?
What is servlet collaboration?
What is difference between GenericServlet and HttpServlet?
Which HTTP method is non-idempotent?
How do I know if java is running on linux?
What are some disadvantages of storing session state in cookies?
Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!
How will two or three servlets interact or communicate with each other?
How to get the server information in a servlet?
Can servlet have a constructor ?
What are sessions in servlets?
What is the purpose of inter-servlet communication?