An abstract class is not an interface. It is a base class that can be extended by another class. As such it can be instantiated indirectly. Interfaces cannot.
Saying that "interface is nothing but a pure abstract class" is not correct. Though they may seem similar, they are not the same. A class can extend only one abstract base class, but can implement any number of interfaces.
Joined: Oct 12, 2010
could you just clarify this one
i created a java file. it contains only interface. when i compile this one it will create a class file.class file created only for class is it true?