Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Map m = new HashMap() over HashMap m = new HashMap()

Status
Not open for further replies.

lovekang

Programmer
Feb 16, 2006
86
KR
I know the benefits of declaring functions with interface return values and interface parameters over declaring with concrete implementations.
that is;
public Map getValue(Map m) over public Hashtable getValue(HashMap m)
but
why Map m = new HashMap() is benefical over HashMap m = new HashMap()?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top