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 are wrapper classes in java?
What is locale in java?
What is the difference between preparedstatement and statement in java?
Explain features of interfaces in java?
What is the difference between compile-time polymorphism and runtime polymorphism?
What is java util hashmap?
Write a program to print all permutations of string?
Explain all java features with real time examples
Why parsing is done?
What do you mean by order of precedence and associativity?
Explain garbage collection in java?
How use .contains in java?
Explain java thread life cycle.
How will you invoke any external process in java?
Does list maintain insertion order java?