Hi Shyam!
I can just explain about interface is that when a class
implements a interface it actualy signs a contract with it ,that
this class is going to implement all the methods in an interface
and as you said what is the need for interface when we can
use abstract classes instead,but somtimes there is a requirement
that a class requires to implement more than one interface
or it requires to implement two different sets of methods
so it is possible
But if a class wants to implement more than one
abstract class you must
be knowing that multiple inheritence is not possible in java.......
i think this can be one reason for your question..............
i hope it helps...............
