Answer Posted / janet
1.All the methods declared inside an interface are abstract
where as abstract class must have atleast one abstract
method and others may be concrete or abstract.
2.In abstract class ,keyword abstract must be used for the
methods where as interface we need not use that keyword for
the methods.
3. Abstract class must have subclass where as interface
can't have subclasses.
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
How do you create a reference in java?
What is difference between core java and java ee?
Can we force the garbage collection to run?
How do you remove an element from an arraylist in java?
Can substring create new object?
Java is pass by value or pass by reference? Explain
What is difference between synchronize and concurrent collection in java?
What is difference between jdk,jre and jvm?
how come we know the object is no more used in the class?
What are java annotations?
what is predefined function in java?
What is boolean query?
What are the steps involved to write rmi based programs?
How are multiple inheritances done in Java?
Explain the difference between abstract classes and interfaces in java?