I'm quite new in Java programming and I have a question related
to the Enumeration interface.
I wrote a little application which extracts the system parameters
and displays them. It is working and the code looks like this:

Properties systemProperties = System.getProperties(); Enumeration enum = systemProperties.propertyNames();
String key,value;

System.out.println("VM SYSTEM PROPERTIES");
while(enum.hasMoreElements())
{
key = (String)enum.nextElement();
value = systemProperties.getProperty(key);
System.out.println(key+" = "+value);
} // end while

The code is working fine. But however I do not understand why I can use the Enumeration object (returned by the propertyNames()
function, since Enumeration is a INTERFACE and seem to be implemented by the class Properties.
10x in advance for u're answer.