Hi All, I'm new in Java. I want to ask a question. Can interface contain methods with code? How are methods like next(), getString() etc. of the interface ResultSet executed and where they are stored? Thanks -Rajib sarma
Interface methods can not have a body. The implementation for the methods is in the class that implements the interface. In your example, whatever class implements ResultSet is where the actual implementations of the methods declared in ResultSet reside. Making sense?