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
Can we store variables in local blocks?
What is heterogeneous in java?
What is java developer skills?
Write a program to reverse a number in java?
What is a pointer and does java support pointers?
What is static block?
Explain the init method?
Can It is possible to synchronize the constructor of a Java Class?
What is the meaning of I ++ in java?
Is Constructor possible in abstract class in java ?
What is the use of object and class classes?
What are extraneous variables examples?
Why do we need hashmap in java?
What are different types of constants?
How infinite loop is declared?