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 heap memory?
what is nested class in java?
Difference between notify() method and notifyall() method in java?
What is anonymous inner class?
Explain about class in java?
How does callback work in java?
Which of the classes will have more memory allocated?
What are the differences between wait() and sleep()?
What does substring mean?
Can we catch more than one exception in a single catch block?
What is the association?
Is integer passed by reference in java?
What is string in java? String is a data type?
What is re-factoring in software?
Similarity and difference between static block and static method ?