What is the difference between abstract class and interface?

Answer Posted / venu

A programer uses an abstract class when there are some
common features of the program shared by all the objects.
A programer uses an interface when all the features of the
program are implements differently for different objects.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of equations are there?

750


What is meant by design patterns?

790


Difference between final and effectively final ?

832


What is string pool in java?

763


Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?

819


Why bytecode is called bytecode?

812


What is a line break example?

757


How we can make copy of a java object?

864


What are the main differences between notify and notifyAll in Java?

833


How many characters is 2 bytes?

736


Convert Binary tree to linked list.

831


Is stringwriter thread safe?

733


Why lambda expression is used in java?

766


When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?

788


Is 0 true or false in java?

744