If all the methods in abstract class are declared as
abstract then what is difference between abstract class and
in interface?
Answer Posted / ashok kumar
Methods in the abstract class can be accessed only through
a class hierarchy i.e through inheritance.
But methods in the interface can be accessed anywhere i.e
across the class hierarchy.(without inheritance).
Is This Answer Correct ? | 7 Yes | 7 No |
Post New Answer View All Answers
Explain java coding standards for methods?
Explain about varargs in java?
Can static methods access instance variables in java?
What does index mean in java?
What is the difference between @before and @beforeclass annotation?
How to change value in arraylist java?
What is the basic of java?
What is exception handling in java?
What are the characteristics of java?
What are JVM.JRE, J2EE, JNI?
Can there be an abstract method without an abstract class?
What is compareto?
When throws keyword is used?
Is there is any difference between a scrollbar and a scrollpane?
What is a numeric string?