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 are the two types of java programming?
What is Hierarchy of exception?
what is the difference between preemptive scheduling and time slicing? : Java thread
What is the use of optional ?
Tell me about different OOPS concepts.
What is complexity in java?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
What are the advantages of autoboxing?
What mechanism does java use for memory management?
What is the difference between an object-oriented programming language and object-based programming language?
What is finalize()? Is finalize() similar to a destructor?
What is data type in java?
What is the purpose of sizeof operator?
Can inner class final?
what is the significance of listiterator in java?