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 queue in java?
How do you check if an arraylist is not empty?
Why use string handling in Java?
Explain oops concepts in detail?
Can a hashset contain duplicates java?
What is consumer interface?
What is thread safe java?
Why can't we use static class instead of singleton?
Write a program to reverse array in place?
Why java is a platform independent? Explain
What is the purpose of extern variable?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
Is minecraft java edition free?
Explain when noclassdeffounderror will be raised ?
Explain the difference between call by refrence and call by value?