• Post Reply Bookmark Topic Watch Topic
  • New Topic

Diffrence between declaring List lst = new ArrayList() and ..  RSS feed

 
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI
Want to know the diffence between

declaring
List lst = new ArrayList();
ArrayList = new ArrayList();

Which is good to use and why ?
 
Sheriff
Posts: 9610
37
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The 1st one is preferred. Read this or this...
 
Greenhorn
Posts: 29
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
List lst = new ArrayList();

ArrayList = new ArrayList();



Actually liked the links given by Ankit...thanks a lot.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!