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
Why is java called java?
What mechanism does java use for memory management?
What is classes in java?
What best practices should you follow while writing multithreaded code in java?
Is java code slower than native code?
What is the use of coding?
How does the java compiler work?
what is nested class in java?
What is the similarity between dynamic binding and linking?
What is the static method?
How do I get the | symbol on my keyboard?
What is the difference between state-based unit testing and interaction-based unit testing?
What is off heap memory?
What does java edition mean?
Which package is always imported by default?