what is the difference between abstract class and
Interface?where we can use it in realtime projects?

Answer Posted / kala

1) if the class is abstract. this class con't instatiate any
object. if we that class implemented with interface, we can
instatiate object with respect interface methods.

2) if we extend that particular abstract class, we must be
implemented all those abstract methods in that class.
otherwise it will automatically become abstract class. in
interface, if we implements the interface not compalsory
implemented, we can use those class ref.

Is This Answer Correct ?    47 Yes 36 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Classloader in Java?

802


How we create object in copy constructor?

842


Is 0 a real number?

769


What is the difference between JDK and JVM?

828


What is hotjava?

727






Does collectionutils isempty check for null?

1094


How do you stop a thread in java?

796


what is the final keyword denotes in java?

769


Write a program to print fibonacci series up to count 10.

683


What is assembly language?

716


What does the @override annotation do?

730


What is protected in java?

719


What is string example?

784


When should I use singleton?

680


Can we have a try block without catch block?

735