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 difference between null and void?
What is the use of arraylist in java?
Can we sort array in java?
How many bytes is 255 characters?
What is the difference between static method and instance method in Java?
What is the difference between sleep and wait in java?
What are assembly attributes?
Explain about object oriented programming and its features?
What is the final method?
What is a finally block?
How to create a custom exception?
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).
Variables used in a switch statement can be used with which datatypes?
How many arguments can a method have java?
What are the restrictions imposed on method overriding?