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
Why do threads block on i/o?
What is the argument type of a programs main() method?
wahts is mean by dynavalidatorform in struts/
What is a tasks priority and how is it used in scheduling?
what are the advantages of JTA over JTS?
Can I use multiple html form elements with the same name?
Name three component subclasses that support painting?
Is a class a subclass of itself?
what are memory considerations of jsp compares to other web components?
What is threadfactory?
What are the types of scaling?
Explain what is orm?
Where we can write Rmi registry in the code, without having to write it at the command prompt?
How messaging services are done, before release of JMS?
What is the purpose of the wait() method?