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


Please Help Members By Posting Answers For Below Questions

What is the difference between JDBC 1.0 and JDBC 2.0?

2712


How can you set the applet size?

575


What is a boolean flag in java?

563


Write a program to check for a prime number in java?

559


What are access specifiers available in java?

579






What is the difference between a vector & an array list?

677


When we serialize an object does the serialization mechanism saves its references too?

508


Which one will take more memory: an int or integer?

773


What is a container in a gui?

548


How to provide security in java

1805


Is empty list java?

525


Explain about the interpreter in java?

625


Is java based on c?

535


What are the advantages and disadvantages of reference counting in garbage collection?

575


Where local and global variables are stored?

543