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


Please Help Members By Posting Answers For Below Questions

Why is java called java?

819


What mechanism does java use for memory management?

755


What is classes in java?

731


What best practices should you follow while writing multithreaded code in java?

803


Is java code slower than native code?

794


What is the use of coding?

748


How does the java compiler work?

755


what is nested class in java?

875


What is the similarity between dynamic binding and linking?

870


What is the static method?

786


How do I get the | symbol on my keyboard?

809


What is the difference between state-based unit testing and interaction-based unit testing?

753


What is off heap memory?

775


What does java edition mean?

789


Which package is always imported by default?

818