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
Why java strings are immutable in nature?
How can we make copy of a java object?
Is special character in java?
What are the methods to rectify ambiguities in the interfaces in JAVA?
What do you mean by composition in java?
What is difference between Heap and Stack Memory?
What is the use of pattern in java?
What is space character in java?
What is a for loop in java?
What is meant by method?
Which class is the superclass for every class in java programming?
How do you read a char in java?
Can you sort a list in java?
Does apple use java?
How objects are stored in java?