Difference between Abstract Class & Interface?
Answer Posted / brijendra kumar(xavient)
Abstract Class:
1-Abstact class declare with the abstract keyword.
2-Abstract class contains the both method declaration and
defeination.
3-Abstract class donot have the instant variable.It have
only constrants.
3-Abstract class extended by its sub class.
4-Abstract class support only single inheritence.
Interface:
1-Interface declare with the interface keyword.
2-Interface contains the only collection of method
signature.
3-Interface implement by a class.
4-Interface extended by one or more interfcae.
5-Interface support the multiple inheritence.
6-Interface is useful for java development.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between Logical Parallelism and Physical Parallelism?
What is explicit casting?
What are tlds in java?
Spring framework ---Can somebody explain me in easily understandable format about AOP, IOC and DI, so that i can explain in interview rather than just telling what is available in net. I am not able to understand that also. I am new to Spring
What is savepoint in java?
What is a uint8?
What is java lang exceptionininitializererror?
What are the authentication modes in asp.net? : java security
What is cdi in java?
Why are command line arguments passed as a string?
What is the difference between swing and awt components?
What is the difference between lambda expression and anonymous methods?
How can I protect myself? : java security
What is http session in java?
How do I run a java project?