Isaac Waller
Isaac Waller

Reputation: 32730

What is Type<Type> called?

What is

Type<Type> type;

called (opposed to)

Type type;

You know, where you put the angle brackets around the type? I use this a lot, but don't know the name - it's bugging me. It's very hard to search for - Google ignores the <> characters.

(note: this is Java)

Upvotes: 4

Views: 870

Answers (3)

Imagist
Imagist

Reputation: 18514

Generics or parameterized types.

(Hey, two people already posted the same thing as each other and both got ~3 upvotes. I'm just looking for a share of the love.)

Upvotes: 3

Noon Silk
Noon Silk

Reputation: 55082

Generics! :)

Upvotes: 13

Related Questions