what is difference between interface and abstract class..?

Answer Posted / kumar

Interface:
1)It will contain only abstract methods

Abstract Class:
1)Any class can be declared an abstract class ,but if a
class contains an abstract method it should be declared as
an abstract class.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are memory tables?

853


What is immutable data?

842


In case of inheritance what is the execution order of constructor and destructor?

893


Explain the transient field modifier?

804


Difference between collection, collection and collections in java?

818


What is incompatible types in java?

818


How would you format a date in java? I.e. In the ddmmyyy format?

1153


Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..

2088


Is void a return type?

755


How to handle a web browser resize operation?

783


What is the common usage of serialization?

832


Tell us something about set interface.

790


What does n mean in java?

760


What is the difference between instanceof and isinstance?

780


Program to Find the second largest element in an array.

842