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
Can we declare a static variable inside a method?
What does += mean in java?
What is a treeset class?
Difference between process and thread?
How would you convert bytes to string?
What is the purpose of java?
How many wrapper classes are there in java?
What is role of void keyword in declaring functions?
Do loops java?
How will you reverse a link list without using recursion?
Does constructor be static?
Can we declare array without size in java?
What is the use of using enum to declare a constant?
what is synchronization and why is it important? : Java thread
Why generics are used in java?