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 modifiers may be used with a top-level class?
What does a za z0 9 mean?
What are the 3 types of loops in java?
What is bufferedreader in java?
What is string args [] in java?
What are peerless components in java programming?
What is a protected class in java?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
Where is core java used?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
What is the difference between the file and randomaccessfile classes?
Is it possible to specify multiple jndi names when deploying an ejb?
What is instanceof keyword?
Is null keyword in java?
What is the current version of java?