what is the difference between abstract class and
Interface?where we can use it in realtime projects?

Answer Posted / hanu

Both are same in many ways ..Except
if we extend that particular abstract class, we should be
implemented all those abstract methods in that class.
In the case of interface, we can implement any numbber of
methods to that interface ..

Is This Answer Correct ?    13 Yes 39 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java virtual machine and how it is considered in context of java’s platform independent feature?

659


Why main method is called first in java?

549


Why does java doesnt suuport unsigned values?

1805


What is generic class?

652


What is java string pool?

550






What does flag mean in java?

546


What is re-factoring in software?

587


How do you stop a thread in java?

605


This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }

569


Can you override private or static method in java?

560


What is static in java?

563


Explain the advantages of packages in java?

521


What is stringreader?

531


Can we override a variable in java?

561


What is a loop java?

592