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

What is :: operator in java 8?

801


please send me hr interview questions in it industry

1900


Can a static class have a constructor java?

744


What is java lang string?

770


What is function overriding and overloading in java?

815


Is string an object?

876


what state does a thread enter when it terminates its processing? : Java thread

827


What is instance synchronization?

827


What is application system?

701


How many unicode characters are there?

803


Can we override constructors?

777


What is a ternary operator in java?

767


What is the implementation of destroy method in java. Is it native or java code?

738


Is void a data type?

715


What are the three parts of a lambda expression?

759