Why do generics often use T?

前端 未结 8 876
故里飘歌
故里飘歌 2020-12-17 18:08

Is there any reason for the use of \'T\' in generics? Is it some kind of abbreviation? As far as I know, everything works. For example

public G Say         


        
8条回答
  •  借酒劲吻你
    2020-12-17 18:22

    T for Type

    Also, E is used for Element that's very common too. You're right G also works.

提交回复
热议问题