what are the diffrences between interface and abstract
class?
Answer Posted / ravikiran
interface is a purely abstract one when we wish to
implement all the methods for different scenarios in
different places we make use of implementation of the
interface.
abstract class is the one which contains both abstract as
well as non abstarct methods,We will define this if you
want ot restrict the instantiation of the class.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Justify your answer that you can't define a method inside another method in java, if you can then how?
What is the difference between yield() and sleep()?
Why you should not use singleton?
How can you traverse a linked list in java?
What is a boolean flag in java?
What is the += operator called?
What is collection api?
Can we override a variable in java?
What are abstract classes and anonymous classes?
Can we call a non-static method from inside a static method?
Why we override equals() method?
What is difference between string and new string?
what is difference betweem home interface and remote interface?
What type of variable is gender?
What is the purpose of garbage collection in java? When is it used?