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 the difference between system.out ,system.err and system.in?
Is it possible to stop the execution of a method before completion in a sessionbean?
Explain the difference between object state and behavior?
Explain phantom read?
What is the difference between session and entity beans?
Explain about thread synchronization inside a monitor?
What is TL and its use?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
Can constructors be synchronized in java?
Write a program to show synchronization?
how i secure my site with the https protocol.what are the steps?
What is a session? Can you share a session object between different theads?
Explain how will the struts know which action class to call when you submit a form?
difference between ejb,struts,hibernate,spring and jsp
What are callback interfaces?