what is difference between abstract and interface?
can i give real time example for the two topics?
Answer Posted / mahesh yadav ch
interface is a abstract, but abstract is not a interface.
interface is fully-unimplemented structure. where as
abstract is partly implement or may not implement structure.
interface contains statements only(public static final int
a;public void f1();).but abstract contains abstract methods
& variables
Is This Answer Correct ? | 12 Yes | 5 No |
Post New Answer View All Answers
What is "this" keyword in java? Explain
Why java doesn’t support multiple inheritances?
Is it possible to instantiate the abstract class?
How do you escape sequences in java?
When throws keyword is used?
If a method is declared as protected, where may the method be accessed in java programming?
What is getkey () in java?
How objects are stored in java?
What is oop principle in java?
What is a double?
Which java collection does not allow null?
What is an object in java?
What is a buffer in computer?
What are benefits of java?
What is meant by design patterns?