1.

Explain the difference between abstract classes and interfaces in Java?

Answer»
 InterfaceABSTRACT class
1.Can only have abstract methodsCan have abstract, non-abstract methods
2.Variables are by DEFAULT final.May CONTAIN non-final variables.
3.Only has STATIC and final variablesCan have non-final, final, non-static and static variables


Discussion

No Comment Found