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
Why stringbuffer is faster than string?
How can we make string upper case or lower case?
Is java a utf 8 string?
What do you understand by final value?
When parseint method can be used?
Can we sort array in java?
How to optimize the javac output?
What is complexity and its types?
What are different types of control structures?
How many unicode characters are there?
Why is static used?
Explain restrictions for using anonymous inner classes?
How many types of memory areas are allocated by jvm?
how to convert Java project into Maven ?
Write a program to print count of empty strings in java 8?