adspace


What is Difeerence between List obj=new ArrayList(); and
ArrayList obj=new ArrayList()?

Answer Posted / Ram Prakash Soni

There is no difference between List obj=new ArrayList<>() and ArrayList obj=new ArrayList<>. Both lines of code create a new instance of the ArrayList class and initialize it as a list.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

2278


Please send ford technologies placement paper 2 my mail id

2177