Originally posted by rajapratap:
Can anyone tell me the exact difference between interface and abstract class?
To be little precise with..
Interface are the most beautiful and powerful component provided by Sun people.
To get the utility of an Abstract class one has to extend it.. and that forms a heirarchy. Usually the utility of an abstract class persist with one heirarachy... (or we can abstract out the common functionality of a perticular heirarachy and put it in abstract class).
Where in case with Interface.. it has nothing to do with any class heirarachy.. things which you find common amongst all heirarchy can be put in interface.
Thats the greatest thing I belive. !!!
- Keyur