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
What is an infinite loop?
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
Why enumeration is faster than iterator?
What are the methods to rectify ambiguities in the interfaces in JAVA?
What are internal and external variables?
What is overriding in java?
What is the use of a conditional inclusion statement in Java ?
What is object english?
what is inner class in java?
what do you mean by stream pipelining in java 8? Explain
Is it possible to compare various strings with the help of == operator?
Difference between static and dynamic class loading.
What are inner classes or non static nested classes in java?
What is boolean flag in java?
What is a key in java?