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
Give an example of call be reference significance.
What is the purpose of main function in java?
How can we make string upper case or lower case?
Is there any case when finally will not be executed?
What is difference between core java and java ee?
What does this mean java?
What is string manipulation?
What is a dynamic array java?
What is the difference between abstract classes and interfaces?
Can we compare two strings in java?
Explain, java is compatible with all servers but not all browsers?
what are different ways in which a thread can enter the waiting state? : Java thread
What is a default constraint?
Explain throw keyword in java?
Can you start a thread twice in Java?