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 meant by method chaining?
What is message driven beam?
how i secure my site with the https protocol.what are the steps?
Why a client should be multithreading? Explain.
How is a java object message delivered to a non-java client?
what are the activation groupworks?
What is jboss?
What is a tasks priority and how is it used in scheduling?
Is it possible to stop the execution of a method before completion in a sessionbean?
How would you detect a keypress in a jcombobox?
Why are my checkboxes not being set from on to off?
Do I need to import javlang package any time? Why ?
What are the different methods of identifying an object?
what are getters and setters in Java with examples?
Explain the different types of memory used by jvm?