The Artima Developer Community
Sponsored Link

Legacy Design Forum
Event Generator Idiom

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

query

Posted by vindu puri on December 17, 2001 at 6:17 AM

hallo
sir i want to ask that as in interfaces we don't have concrete methods instead we have abstract methods but even then the JDBC
runs totally on the basis of interfaces, how come the methods of interfaces functions if they are abstract ie; bodyless

for example;
this statement will make my doubt more clear
Connection con=DriverManager.getConnection();
Statement stmt=con.executeQuery();
how this executeQuery method do its functionality when no functionality is defined to it

othet doubt is just by declaring the reference how we invoke there methods,as we do in ActionEvent class
public void actiomPerformed(ActionEvent e)
{
if(e.getSource()==component)
here getSource() method of Action event class invoked just with the declaration of the reference and not by declaring them


please answer my queries i'll be thankful to you

thanking you
regards
vindu






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us