When you make an ArrayList without specifying the object type, does it create it automatically when you add the first object?

Viewed 30501

For example, instead of doing

ArrayList<ClassName> variableName;

you do

ArrayList variableName;

then later you add an object of type "ClassName"

variableName.add(objectName);

will that automatically set the type of your array as

ArrayList<ClassName>

?

3 Answers
Related