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 are the advantages and disadvantages of object cloning?
'A class is a template for an object' explain this statement.
Can size_t be negative?
What is the difference between path and classpath variables?
Difference between predicate, supplier and consumer ?
What is the name of the java compiler?
Difference between final and effectively final ?
What is an immutable object? How do you create one in java?
List the interfaces which extends collection interface?
Write a program to check string is palindrome without using loop?
What is canonical name in java?
Mention a package that is used for linked list class in java.
why would you use a synchronized block vs. Synchronized method? : Java thread
What is the difference between length and length() method in java?
what is the difference between process and thread? : Java thread