what is the difference between abstract class and
Interface?where we can use it in realtime projects?
Answer Posted / neha thakur
abstract class contains all abstract method or all concrete
method or combination of both. we can not directly create
object of abstract class.abstract class methods must
implemented in sub class.
interface contains declared method but does not contain body
of method.like abstract class we can not create instance of
interface.methods defined in interface are public &
implicity called as abstract method & interface must be
implemented in the classes with implements keyword which
contains implementation of methods
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the meaning of course?
Which collections are thread safe in java?
why we use merge option in hybernate pls give a ex snippet
what are abstract functions?
What is the purpose of the main method?
why doesn't java run on all platforms?
What is square root in java?
What is valid keyword in java?
Why do we need singleton class?
What is java oops?
What is the point of polymorphism java?
Why java is considered as platform independent?
What is the range of a character variable?
Explain listiterator and methods in listiterator?
What is thread safe java?