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
What is RMI and what are the services in RMI?
What is a class loader?
Which component handles cluster communication in jboss?
Where can I ask questions and make suggestions about seam?
Write a program to show synchronization?
Can I map more than one table in a cmp?
What is bean? Where can it be used?
What modifiers may be used with an interface declaration?
Can I use multiple html form elements with the same name?
Why use POJO when I can use hashmap
How a component can be placed on Windows?
Why does the option tag render selected=selected instead of just selected?
Define prototype?
what is meant by JRMP?
Should synchronization primitives be used on bean methods?