dcsimg
give some major advantages of jdk 1.5 over 1.5
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   manohar_chary
Posted On:   Thursday, December 14, 2006 05:17 AM

in jdk 1.4...

ArrayList arr;
ArrayList arr=new ArrayList();


in jdk 1.5...

ArrayList arr;
ArrayList arr=new ArrayList ();


the above mentioned code is one advantage right
like any major advantages

Re: give some major advantages of jdk 1.5 over 1.5

Posted By:   WarnerJan_Veldhuis  
Posted On:   Thursday, December 14, 2006 05:31 AM

Two things:

- The feature you mention is called generics.

- Try to design by interface, so it would be List = new ArrayList();
About | Sitemap | Contact