What is the diff. b/w Interfaces & Abstract class?
Answer Posted / supriyo pal
There are three main differences between an interface and an abstract class:
• At the same time multiple interfaces can be implemented, but only extend one class
• an abstract class may have some method implementation (non-abstract methods, constructors, instance initializers and instance variables) and non-public members
• abstract classes may or may not be a little bit faster
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a singleton class? Give a practical example of its usage.
Explain different forms of polymorphism?
Explain the usage of this with constructors?
What are accessor methods in java?
How do you get length in java?
How we create object in copy constructor?
Which package has light weight components?
What is the purpose of return statement?
Difference between == and .equals() ?
Is java hashset ordered?
What are parameters in a method?
Explain how can you debug the Java code?
What is the purpose of static methods and static variables?
Can we sort hashset in java?
How many characters is 2 bytes?