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
Which class contains a method: cloneable or object?
When do we need to use internal iteration? When do we need to use external iteration?
What are the problems faced by java programmers who don't use layout managers?
What are the escape sequences in java?
What is map and hashmap in java?
List out five keywords related to exception handling ?
List some java keywords sun like c, c + + keywords?
What is a void method?
what invokes a threads run() method? : Java thread
Write a factorial program using recursion in java?
Why are parameters used in functions?
Why map is used in java?
What are functions in java?
How to reverse string in java?
Explain the meaning of java applet.