Hi, I am a new learner and have a question on creating objects of classes. Let start. Normally I always create an object of a class like the following code:
Car myCar = Car();
But I don't understand in some programs I saw which is similar to the following code.
List<String> contents = new ArrayList<String>();
What is the reason that we don't create like...ArrayList<String> contents = new ArrayList<String>(); could anyone pls clearify me?


