what is the difference between abstract class and
Interface?where we can use it in realtime projects?
Answer Posted / kala
1) if the class is abstract. this class con't instatiate any
object. if we that class implemented with interface, we can
instatiate object with respect interface methods.
2) if we extend that particular abstract class, we must be
implemented all those abstract methods in that class.
otherwise it will automatically become abstract class. in
interface, if we implements the interface not compalsory
implemented, we can use those class ref.
Is This Answer Correct ? | 47 Yes | 36 No |
Post New Answer View All Answers
What is Classloader in Java?
How we create object in copy constructor?
Is 0 a real number?
What is the difference between JDK and JVM?
What is hotjava?
Does collectionutils isempty check for null?
How do you stop a thread in java?
what is the final keyword denotes in java?
Write a program to print fibonacci series up to count 10.
What is assembly language?
What does the @override annotation do?
What is protected in java?
What is string example?
When should I use singleton?
Can we have a try block without catch block?