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 |
Why is boolean important?
Can a class have an interface?
What is java’s garbage collected heap?
Why do we need data serialization?
Can a abstract class be declared final?
Can we override constructors?
What is an iterator interface in java programming?
Why does java have two ways to create child threads? Which way is better?
How do you stop a thread in java?
What are the different ways of implementing thread? Which one is more advantageous?
use of wrapper classes?
How Vector class is synchronized,How to build user defined class as synchronized?