when to use abstract class and when to use interface?
Answer Posted / devarathnam c,kotagudibanda(po
Hi...
When u want to inherit the properties of base class only
(not other resources) go for Abstract class.
When u want to inherit the properties of base class and
other resources go for Interfaces .
| Is This Answer Correct ? | 42 Yes | 34 No |
Post New Answer View All Answers
Is linkedlist thread safe in java?
What is the format specifier?
Give a practical example of singleton class usage?
What is scope & storage allocation of static, local and register variables? Explain with an example.
Who found java?
Difference between class#getinstance() and new operator ?
how to handle exceptions in ejb?
What lambda means?
What are scalar data types?
What does || || mean in math?
What are the 2 types of java programs?
Define array. Tell me about 2-D array.
What are the different approaches to implement a function to generate a random number?
How do you declare a destructor in java?
Differentiate storage classes on the basis of their scope?