Difference between interface and abstract class with ex.
Answer Posted / aditya
Abstract Class :
1. Can have implemented(non-abstract) method
2. Can have any visibility public,protected,private
Interface :
1. All methods are non-implemented(abstract)
2. Only visibility is public or none
3. All variables should be static and final
| Is This Answer Correct ? | 17 Yes | 0 No |
Post New Answer View All Answers
Do we need to manually write Copy Constructor?
How we can skip finally block of exception even if some exception occurs in the exception block in java?
What is ellipsis in java?
What are examples of modifiers?
What is a treeset in java?
Is object a data type in java?
Give me example of derived data types.
What is the difference between Java and C++?
What is the difference between form & report?
What is the declaration statement?
What purpose do the keywords final, finally, and finalize fulfill?
Why string is immutable or final in java
Give some features of interface?
What is 16 bits called?
Define "Access specifiers" in java.