Java is what gets called again: <String> <>

What are they called?

 List<String> ids = new ArrayList<String>(sectionIDs); 

(the part that is equal to <>)

I know this is a newer Java feature, I just can't remember the name.

+4
source share
6 answers

These are parameters of type general classes.

+11
source

It is called Generics.

+2
source
+2
source

General classes , it already exists in C ++ (if you did not know this).

0
source

This is generic java

0
source

Yes, I was going to say: "These are letters and punctuation marks. Can you ask your question a little more specifically?" But, apparently, a bunch of you understood what exactly he was looking for.

0
source

Source: https://habr.com/ru/post/1300627/


All Articles