Question:

In the java class libraries I saw there is a class List (java.lang.Object,extended by java.awt.Component,extended by java.awt.List)
as wel as the interface List(java.util ). Suppose you have imported both into one class. If you declare a variabele of type List (e.g. List list ; ) What is the type of list then? The interface List of the class List? Or does this depend on the initialisation?