In real time project when will we use Abstract class. and
what are the difference between abstract and interface.
Answer Posted / aravind
Depending upon the requirement.
Abstract class---->it contains zero or more abstract methods.
ex HttpServlet and GenericServlet
HttpServlet contains all sre concrete methods but it
declared as a Abstract class.
InterFace--->It contains all abstract methods.
if we extends the abstract class .there is chance to extend
another class.
if we implements the interface we can extends another class
Is This Answer Correct ? | 17 Yes | 5 No |
Post New Answer View All Answers
whats is mean by tiles in struts
What is the difference between static and non-static with examples?
What are JTA/JTS and how they used by client?
Name the eight primitive java types.
How task's priority is used in scheduling?
Why won’t the jvm terminate when I close all the application windows?
What is ioc concept & explain it?
What is a session? Can you share a session object between different theads?
Java is fully object oriented languages or not?
what are memory considerations of jsp compares to other web components?
What is the purpose of the wait() method?
What are the different approaches to represent an inheritance hierarchy?
What are externizable interface?
How would you reatach detached objects to a session when the same object has already been loaded into the session?
What are local interfaces? Describe.