when to use abstract class and when to use interface?
Answer Posted / jc
If you want give different implementation(behaviour) to
methods which are available in the interface go for
interface.
If you want give different implementation to particular
methods(that is only some methods which are not similar to
subclass)go for abstract class.
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
Difference between keyword and identifier.
Why we use multi threading instead of multiprocessing?
What is this keyword in java?
How do you end a program?
Can we call a non-static method from inside a static method?
What is the importance of finally block in exception handling?
Can a function return a function?
Write a program to print fibonacci series up to count 10.
hr interview how many minutes asking question
What is locale in java?
Is string a wrapper class?
What is the platform?
Which data type is class in java?
Explain importance of finally block in java?
Write a java program that prints all the values given at command-line.