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

Answer Posted / rajesh

An abstract class must contain one abstract methiod while
in interface all method should be abstract.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use string in switch case in java?

801


What is final method in java?

745


Can an interface implement another interface?

770


What is the generic class?

710


Can we use both this () and super () in a constructor?

769


What are the rules for naming an array?

732


What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?

934


What do you mean by an object in java?

867


What is a default method?

753


What do the thread?class methods run() and start() do?

778


What is the difference between hashset and treeset in java?

763


Explain polymorphism citing an example.

805


What is gui programming?

713


Can inner class extend any class?

806


Which java ide is used the most?

753