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
how to use debug in my elipse to solve problems that exist in my project
Are enterprise beans allowed to use thread.sleep()?
What is a class loader?
Is there a guarantee of uniqueness for entity beans?
How database connectivity in XML is achieved?
What is a session? Can you share a session object between different theads?
How task's priority is used in scheduling?
what are getters and setters in Java with examples?
What are the different algorithms used for clustering?
Why are my checkboxes not being set from on to off?
In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?
Can I import same package/class twice? Will the jvm load the package twice at runtime?
What is the difference between system.out ,system.err and system.in?
What if the static modifier is removed from the signature of the main method?
What is abstract schema?