Difference between abstract class and Interfaces?

Answer Posted / hema

Abstract Class is the Class where it can have Methods with
both Definition and Declaration.

Method Declaration: public void Display();
Method Definition: public void Add(){ ..code goes on here...}

When all the methods in a class are only Declared then it is
Interface.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the @override annotation do?

563


Describe method overriding

587


What is the difference between java applets and applications?

566


What is data type modifier?

529


What is the purpose of the System class?

581






Can a class have multiple constructors?

535


Can a static class have a constructor java?

549


Explain purpose of sleep() method in java?

618


How do you reverse a string in java without using string buffer?

591


What is the difference between reader/writer and inputstream/output stream?

555


Does treeset allow null in java?

513


What is the difference between a checked and an unchecked exception?

551


What does you mean in math?

539


What is a top level class in java?

534


what is the difference between process and thread? : Java thread

563