If all the methods in abstract class are declared as
abstract then what is difference between abstract class and
in interface?
Answer Posted / namita
In abstract class concrete methods are also there. concrete
methods are the one which has implementation. so in future
if any programmer wants to give concrete methods can use
abstract class not interface.
In abstract class for methods and variables
public,private,protected modifier can be use. but in
interface public and abstract are permitted.
Is This Answer Correct ? | 18 Yes | 6 No |
Post New Answer View All Answers
What modifiers may be used with an inner class that is a member of an outer class in java programming?
Is a char always 1 byte?
Can we execute a program without main?
What is the difference between static method and instance method in Java?
What are the 8 primitive data types in java?
What is java string pool?
What is canonical name in java?
How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?
Explain with example the concept of constant variable in java.
What are the limitations of procedural programming approach?
Can this keyword be used to refer static members?
What is the difference between hashmap and hashtable in java?
Explain the different forms of polymorphism?
What is a singleton puppy?
What are the differences between graph and tree?