What is the difference between Abstract Class and Interface

Answer Posted / ravi

1.A programmer creates abstract class when there are some
common features shared by all the objects.
A programmer writes an interface when all the features
should be implemented differently for different objects.

2.When an abstract class is written the programmer should
provide sub classes to it.
A programmer writes an interface when he wants to leave
implemntation classes to third party vendors.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java based on c?

754


What are the advantages of inner classes?

741


what is the use of bean managed and container managed with example?

1733


Where can i get Latest SUN Certification Dumps and what are the Sun Certification Codes that are available, Im new to JAVA, so please gimme info as i need to write J2EE - Core Java Certification

1626


What is balanced tree in java?

719


Explain the private protected method modifier?

748


How to perform selection sort in java?

793


Is char * a string?

744


What do you understand by an io stream?

799


What is java console application?

765


Can you call a method in a method?

767


How will you get the platform dependent values like line separator, path separator, etc., ?

792


What is linked hashset and its features?

741


We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.

1713


what is mena by object block any what is the use of that

1978