when,where and how to use abstract class and interface
Answer Posted / vinaykumar
If you want to provide your own services for methods we
use interfaces.If you want to provide your own services or
to use the services of the methods in your class then wego
for abstract classes.abstract class is partially implemented
and partially unimplemented class where as interface is
completely unimplemented.both of the objects can not be
created.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What does the @override annotation do?
What is the default value of the local variables?
Why java is made?
What is a concrete classes? Is Java object class is concrete class?
What is the difference between Java1.4 and Java1.5
explain copyonwritearraylist and when do we use copyonwritearraylist?
What is double in java?
What are the advantages of assembly language?
Can we sort a map in java?
Difference between current previous versions of Java?
What is the use of join method?
In java, what is the difference between method overloading and method overriding?
How concurrent hashmap works?
What are drawbacks of singleton class?
What is this keyword in java?