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
How do I run a java project in netbeans?
How do I open the java console in windows 10?
when i send the request to the JSP page it will print as it is and why? and how to solve this problem please inform me that solution
Explain the common use of ejb?
What is the difference between collection and stream?
What is the java api?
What type of parameter passing does java support?
Is jvm a compiler or an interpreter?
Who created eclipse?
How can the static main method use instance variables?
Explain the encapsulation principle.
What is javabeans api?
What do you mean by exception handling?
Is jdk an ide?
What is maven in java?