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
How will you serialize a singleton class without violating singleton pattern?
How to handle a web browser resize operation?
What is dot operator?
Is java a software?
How do you decide when to use arraylist and linkedlist?
What are byte codes?
What is hotjava?
What is the meaning of I ++ in java?
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
How to create an interface?
What is the method overriding?
Can a boolean be null java?
What is the main advantage of passing argument by reference?
Where local and global variables are stored?
Explain covariant method overriding in java.