What is the difference between the following declarations:
ArrayList<Object> arr=new ArrayList<Object>();
ArrayList arr=new ArrayList();
What happens if we use add
method or any other method of ArrayList
in the condition above? How does it work?
Ruchira Gayan Ranaweera :
ArrayList<Object> arr=new ArrayList<Object>(); // Object type \n\nArrayList arr=new ArrayList(); // raw type\n\n\nWhat is row types",
2014-08-11T06:44:52