As of Java 5, objects implementing the Iterable interface, which returns an Iterator from its only method, can be traversed using Java's foreach loop syntax. The Collection interface from the Java collections framework extends Iterable.