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 is the string function?
What is java util concurrentmodificationexception?
What do you mean by inner class in java?
What are the different collection views provided by maps?
What is a arraylist in java?
What is the difference between processes and threads?
What is a double?
Explain how hashmap works?
What is the difference between static method and instance method in Java?
what is heap memory?
Which data type is class in java?
Why use string handling in Java?
What type of language is java?
What is abstraction in java?
Explain java heap space and garbage collection?