Difference between abstract class and Interfaces?
Answer Posted / nanthinikrishnan
An abstract class can have concrete method, which is not
allowed in an interface. Abstract class can have private or
protected methods and variables and only public methods and
variables are allowed in interface. We can implement more
than one interface , but we can extend only one abstract
class. Interfaces provides loose coupling where as abstract
class provides tight coupling.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is bytecode in java ?
What are thread local variables?
Why are pointers not secure?
What are the types of web technologies?
What is polymorphism java example?
Can a class be final?
Can we declare a static variable inside a method?
Difference between Preemptive scheduling vs. Time slicing?
What does jenkins do?
Why java doesn’t support multiple inheritances?
What are byte codes?
What is package private scope in java?
Is arraylist dynamic in java?
Explain about procedural programming language or structured programming language and its features?
What are the four corner stones of oop?