In real time project when will we use Abstract class. and
what are the difference between abstract and interface.
Answer Posted / gopi
abstract class means--it has atmost one abstract
method.remaining might be abstract or not.
interface means ---it has almostall abstract methods.u have
only the method specification.
In real time if u want to share the some common features in
the abstract class u have to extends the abstract class.
so, u need not wrote the body to the all the methods.
if u implement interface u should write body to the all
the methods.
| Is This Answer Correct ? | 12 Yes | 13 No |
Post New Answer View All Answers
How would you detect a keypress in a jcombobox?
Difference between hashmap and hashtable?
To what value is a variable of the string type automatically initialized?
What is an abstract method?
Can I run seam outside of jboss as?
How database connectivity in XML is achieved?
Is it possible to stop the execution of a method before completion in a sessionbean?
Where can I ask questions and make suggestions about seam?
How primary key is implemented in Oracle?
What is the relationship between local interfaces and container-managed relationships?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
Describe, in general, how java's garbage collector works?
Explain RMI Architecture?
How to implement RMI in Java?
what are memory considerations of jsp compares to other web components?