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
Define how does a try statement determine which catch clause should be used to handle an exception?
Can we clone singleton class in java?
Why declare Main() method as a static in java ?
Do I need java on my pc?
What is nan in java?
Which java collection does not allow null?
Can we nested try statements in java?
How a string is stored in memory?
What is json parser in java?
What is the use of callablestatement?
Is linked list a linear or non-linear data structure?
Can we declare a static variable inside a method?
What is a heavyweight component?
Where are register variables stored?
How do you take thread dump in java?