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
In how many ways we can do synchronization in java?
How is java hashmap implemented?
How to invoke external process in java.
How do generics work in java?
What is default size of arraylist in java?
What is operator overloading. Is it is supported in java?
How do you execute a thread in java?
Which class should you use to obtain design information about an object in java programming?
What is Applet Stub Interface ?
what is object slice?
What is exception propagation?
what is an objects lock and which objects have locks? : Java thread
what is the messsage u r going to get from an objectoriented programing?
Is multiple inheritance supported by java?
What are constructors in java?