what is difference between abstraction and interface?

Answer Posted / chandra rekha

A class becomes an abstract class when it has atleast one
abstract method(a method with no definition).The major
difference between abstract classes and interfaces is that
an abstract class can contain both methods with zero
definition as well as methods with definition.But an
interface is one in which all the methods are with no
definition.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how does multithreading take place on a computer with a single cpu? : Java thread

691


Who found java?

550


What is an example of character?

552


What technique can be employed to compare two strings?

569


Which class is the superclass for all the classes?

535






Can you make a constructor final in Java?

626


How many digits can a float hold?

535


What is array length?

503


Can a method inside a interface be declared as final?

527


Can we write method inside a method in java?

522


What’s a deadlock?

607


What is boolean logic?

559


Why is the singleton pattern considered to be an anti pattern?

474


What are the supported platforms by java programming language?

567


Does anyone still use java?

582