what is difference between abstraction and interface?
Answer Posted / muthusenthil
Abstract class contains one or more unimplemented methods
left for future implementation by its derived class.it has
all property of class it cannot be instantiated.it provides
default behaviour.
Interface is mear specification nothing is implemented its
just a declaration.in java using interface we can model
multiple inheritance. it provides design flexibility.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can bool be null?
What should I import for arraylist in java?
What is the difference between error and an exception?
Should you use singleton pattern?
What is treeset in java?
Why do we use regex?
How is tree Mirroring implemented?
Does a class inherit the constructors of its superclass in java programming?
Can a class be a super class and a sub-class at the same time? Give example.
Can You Have Virtual Functions In Java?
What is a double vs float?
What is constructor chaining in java?
Explain notify() method of object class ?
What is a “stateless” protocol ?
Differentiate between overriding and overloading cases?