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 do we need singleton?
What is a conditional statement explain with example?
What is java objectoutputstream?
How do you convert an int to a string in java?
What is the meaning of flag day?
Does isempty check for null?
What is a void in java?
What is int short for?
What does this () mean in java?
What do you mean by byte code?
Differentiate between array list and vector in java.
Why constructor has no return type?
What is the primitive type byte?
What is the use of runnable interface?
Why do I need to declare the type of a variable in java?