D
D
Den4_x2020-09-10 03:12:06
Java
Den4_x, 2020-09-10 03:12:06

What does the entry mean: Collection collection = new ArrayList();?

Collection collection = new ArrayList(); //?WTF?

ArrayList x = new ArrayList<>(); // this entry is crisp and clear,

it's a mess in my head because of the 1st line, I don't understand what it means. Google says this is a type of etiquette rule. this answer is not clear to me. I would like a more precise answer or a link to an exact explanation.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-09-10
@Den4xCode

Dive into OOP, get acquainted with the principles of SOLID, everything will become clear.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question