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
What’s jboss cache in short?
Why won’t the jvm terminate when I close all the application windows?
What is the relation between the infobus and rmi?
What is the difference between a static and a non-static inner class?
What modifiers may be used with an inner class that is a member of an outer class?
Do you think that java should have had pointers?
What value does readline() return when it has reached the end of a file?
What are transaction attributes?
Why use a datasource when you can directly specify a connection details? (in a J2EE application)
What is threadfactory?
What are JTA/JTS and how they used by client?
How to implement RMI in Java?
Why are my checkboxes not being set from on to off?
If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?
Difference between loadclass and class.forname?