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
Can we call the constructor of a class more than once for an object?
What is default locale java?
Explain illegalmonitorstateexception and when it will be thrown?
What is object data type?
What is the common usage of serialization?
Write a java program to generate fibonacci series ?
What is compiler and what its output.
Can we have any code between try and finally blocks?
What is difference between static and abstract class?
What is Enum in Java?
How do you compare objects in java?
Explain jdk, jre and jvm?
How do you compare two objects?
Differece between class and generic class?
What is a default constraint?