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