What is the need of interface?? when we r not defining any code in the methods in the interface, what purpose does it serve?? we can as well define the methods in the current class(the class which we r implementing the interface), which saves us from overriding all the other methods of the interface - which is another headache.
im new to Java Programming. i want to have some detailed information and explanation on Interfaces. i know that Intarfaces r used bcoz java doesn't support multiple inheritance. but still what i couldnt get is when there is no code in interface, what is the need for it??