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


Please Help Members By Posting Answers For Below Questions

Explain java coding standards for methods?

601


Explain about varargs in java?

580


Can static methods access instance variables in java?

571


What does index mean in java?

536


What is the difference between @before and @beforeclass annotation?

530






How to change value in arraylist java?

496


What is the basic of java?

568


What is exception handling in java?

573


What are the characteristics of java?

521


What are JVM.JRE, J2EE, JNI?

684


Can there be an abstract method without an abstract class?

537


What is compareto?

542


When throws keyword is used?

580


Is there is any difference between a scrollbar and a scrollpane?

558


What is a numeric string?

559