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
Can we override constructors in java?
How large is a boolean?
What is the default execution method in java?
What is the class in java?
Why are arrays useful in java?
Can you access the private method from outside the class?
How do you convert int to char in java?
What is array in java?
What are the 3 types of control structures?
What is nextline method in java?
How will you get the platform dependent values like line separator, path separator, etc., ?
In which language java is written?
What is main function purpose?
What is memory leak and how does java handle it?
Why packages are used?