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
Why is java logo a cup of coffee?
What is the purpose of an interface?
design an lru cache in java?
How many times finalize method will be invoked? Who invokes finalize() method in java?
What is java object name?
How will you initialize an Applet?
How do you control extraneous variables?
Can inner class be public in java?
What is consumer in java?
Which java collection does not allow null?
I want to store more than 10 objects in a remote server? Which methodology will follow?
How many bits is a boolean?
I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?
What is the formula to calculate percentage?
What type of value does sizeof return?