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 the difference between JDBC 1.0 and JDBC 2.0?
How can you set the applet size?
What is a boolean flag in java?
Write a program to check for a prime number in java?
What are access specifiers available in java?
What is the difference between a vector & an array list?
When we serialize an object does the serialization mechanism saves its references too?
Which one will take more memory: an int or integer?
What is a container in a gui?
How to provide security in java
Is empty list java?
Explain about the interpreter in java?
Is java based on c?
What are the advantages and disadvantages of reference counting in garbage collection?
Where local and global variables are stored?