watz the difference between abstract class and interface?
Which one u ill choose as a designer?
Answer / 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 |
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
Can a lock be acquired on a class?
What is protected access modifier?
What is unicode full form?
What is object
how to create a jar file in java
Java run-time system generates What class of exceptions?
What is pojo class in java?
which class is the wait() method defined in? : Java thread
What is the association?
What is mvc in java?
What is update method and when it is called?