I giving a mock test on SCJP. I encounter two different question having the statements as
ArrayList<Integer> arr = new ArrayList<Integer>();
and
ArrayList arr = new ArrayList();
1) What is the differnce between these two?
My Analysis=> first can store Integerand its subclasses. and the second can store Object and its subclasses.
2) Can we make object without <> of any generic class?