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
What is string args [] in java?
What modifiers may be used with an inner class that is a member of an outer class in java programming?
How many ways can we create singleton class?
What is stringbuffer in java?
Can a java program have 2 main methods?
Why java is used everywhere?
Can we override constructors in java?
How can constructor chaining be done using this keyword?
What is variable explain with example?
What is the purpose of final keyword and when to use it?
What is stringreader?
Can you instantiate the math class?
What is the difference between sop and work instruction?
Give me an example of array and linked list? Where they can be used?
What is ++ a in java?