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 is JTS?
Is infobus easy to use?
How would you reatach detached objects to a session when the same object has already been loaded into the session?
Write a singleton program?
Is there a guarantee of uniqueness for entity beans?
Define aop(assepct oriented programing)?
Difference between swing and awt?
When is the best time to validate input?
What is colon_pkg_prefixes and what is its use?
How is a java object message delivered to a non-java client?
What’s jboss jbpm?
What is the argument type of a programs main() method?
What is the difference between the font and fontmetrics classes?
what is a portable component?
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?