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

How do you write a scanner class in java?

572


What is identifier give example?

565


What is a variable and constant?

553


Which is faster call by value or call by reference?

513


Where is java located?

511






What are the access modifiers available in java?

579


What is the mapping mechanism used by java to identify IDL language?

595


What is Classloader in Java?

642


Can we restart a dead thread in java?

562


How can you traverse a linked list in java?

696


Explain when noclassdeffounderror will be raised ?

629


Tell me the latest versions in java related areas?

591


Given a singly linked list, determine whether it contains a loop or not without using temporary space?

590


I want to re-reach and use an object once it has been garbage collected. How it's possible?

561


What is finalize() function in java?

571