|
-
Mar 31st, 2010, 04:13 AM
#1
Thread Starter
New Member
Class List vs Interface List
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|