watz the difference between abstract class and interface?
Which one u ill choose as a designer?
Answer Posted / ajay roy
Abstract Class is the one which contains atleast one
abstract method and other method may not be essentially
abstract. However, interface always have only method
signature in it. We can not have methods with
implementation in interface unlice abstract class.
When designer wants to use common property of a system then
he should go with abstract method. Because in abstract
method he can have implementation of common properties
along with signature of other method which can be
implemented as per need.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is difference between jdk,jre and jvm?
Can you explain the final method modifier?
What happens when main () method is declared as private?
Why generics are used in java?
Which eclipse is best for java?
What do you mean by constant time complexity?
What are void methods?
What is the difference between preparedstatement and statement in java?
what is object slice?
Can a final method be overloaded?
What do you understand by access specifiers in Java?
What is off heap memory?
What is the difference between exception and error in java?
Why we used break and continue statement in java?
can used Protected Class outside Function.?