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 a dynamic array in java?
Difference between static and dynamic class loading.
Can we use a switch statement with strings?
Which category the java thread do fall in?
What does indexof return in java?
Why does java not support operator overloading?
Is this valid in java ? Can we instantiate interface in java?
What is the purpose class.forname method?
Can we call a non-static method from inside a static method?
What is the length of a string?
What is memory leak and how does java handle it?
What are the actions that can occur when a thread enters blocked state?
What is size of int in java?
What is a protected void?
How can we make a class singleton?