Java Generics always for collections -



Java Generics always for collections -

i have question java generics. if define class this:

public test<string> ...

does mean class acts collection type strings? illustration when seeing list know list of strings. <> mean it's collection (general meaning, not actual collection type)?

thanks,

no. means type parameterized type string. there plenty of non-collection generic types. see callable<t>, future<t>, comparator<t> example.

java generics

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -