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 wrapper class example?
Can we inherit inner class?
What are the main differences between the java platform and other platforms?
What is a “stateless” protocol ?
What access modifiers can be used for variables?
What language is pass by reference?
What is a subsequence of a string?
How can you set the applet size?
How to reverse a string in java?
What is lambda expression in java?
What is the difference between the paint() and repaint() methods?
Why to use nested classes in java?
What is local declaration?
Is void a data type in java?
What is this keyword used for?