
can u give me one expample in which conditions we are using Interfaces in real time Project??

Hi Friend,
An interface in java includes only abstract methods i.e. methods have signatures only (or we can say, the methods with having their implementations).
An abstract type in java defines that it must be implemented by any class to make use of it.
One benefit of using interfaces is they makes possible to achieve multiple inheritance since java does not allows multiple inheritance.
For more information, visit the following link:
http://www.roseindia.net/tutorial/java/certification/topic13.html
http://www.roseindia.net/java/master-java/interface.shtml
Thanks

Thankyou for ur response but..i need one real time project usage???

If u imagine one interface
Interface int1
{
public void DOOR();
public void WHEELS();
}
if the maruthi company want to use that interface then they can implements the interface and use that DOOR function. At the same time the TVS company want to use their criteria they also use the same interface need not to change are create new interface. usage: 1,code re usability 2,Security . U can,t directly access methods after crossing class TO Interface.Interface only have methods not details about the methods

When you are making a program for a real time meaning say Building; you create a class say House and then another say Shop both extend Building but you decide to make Building as an abstract class as when you create an object of the building class you don't know which kin of object it will be; will it be house or shop so the program fails and you say ah it is good that this class is made an abstract as we shouldn't create an object of this class
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.