Ok, I answered my own question. If you don't have it, download Jad, it's a Java decompiler, and look over the code for the classes in mySQL, it is very informative about what is going on in the code.
Anyone care to shed some light?
In the example Test and TestServlet, there are three interfaces that have objects created:
I can see that you aren't instantiating an object of the interface with new, which doesn't work because interfaces are abstract. However, you still have an object of this interface, so that's a little weird.
...not working with direct "objects" of a interface, which I didn't think you could have...
Originally posted by jason adam:
What books have you been reading, because I want them!
Originally posted by Pauline McNamara:
Now another question on a more general level: using interfaces this way (instantiating objects with an interface type) - is this what is meant by "programming to an interface"?