Hi,
I have a doubt here, plz go thru the code snippet here:
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select * from emp");
Statement and ResultSet are interfaces. executeQuery() method of Statement interface returns a ResultSet object here. That means defnitely Statement should implement ResultSet interface methods to return a ResultSet object, but Statement is an interface, it cldnt implement another interface. Can anyone please clarify this.....thanks