when to use abstract class and when to use interface?
Answer Posted / muthusenthil
Abstract(patially implemented) class can be used as a
common base class for an application it has all property of
class except it cannot be instantiated.it provide default
behavior.
interface is mearly a specification,nothing implemented for
any standalone project which can be changed at will its
more design flexible and it can be utilized to model
multipleinheritance.
| Is This Answer Correct ? | 56 Yes | 30 No |
Post New Answer View All Answers
What does those terms actually mean included in the j.d.k i.6?
What is the purpose of using the java bean?
Define packages in java?
What is a file pointer?
Java Compiler is stored in JDK, JRE or JVM?
What is an array length?
Difference between string s= new string (); and string s = "abv";?
Why we use multi threading instead of multiprocessing?
How to call one constructor from the other constructor ?
Is boolean a data type in java?
Differentiate between class and structure.
What is a values collection view ?
What is meant by class loader? How many types are there? When will we use them?
What does += mean coding?
What is the significance of continue jump statement? Explain with an example.