Home > Back-end >  ArrayList <T> can not obtain the T type?
ArrayList <T> can not obtain the T type?

Time:01-06

There is a way, ArrayList Objects is parameter, meaning the ArrayList is always the collection of all instances of a certain class,
My question is if there is no element in ArrayList, can obtain the type of T is this?
, that is, if you can't get through. The size (0) method to obtain the specific object, can get specific type by type definition?

CodePudding user response:

No, generic wipe, the underlying Object
  • Related