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


Please Help Members By Posting Answers For Below Questions

Why do threads block on i/o?

686


What is the argument type of a programs main() method?

565


wahts is mean by dynavalidatorform in struts/

1571


What is a tasks priority and how is it used in scheduling?

552


what are the advantages of JTA over JTS?

1673






Can I use multiple html form elements with the same name?

581


Name three component subclasses that support painting?

618


Is a class a subclass of itself?

592


what are memory considerations of jsp compares to other web components?

6018


What is threadfactory?

619


What are the types of scaling?

559


Explain what is orm?

681


Where we can write Rmi registry in the code, without having to write it at the command prompt?

2265


How messaging services are done, before release of JMS?

1592


What is the purpose of the wait() method?

624