Can we create generic array in Java?

In Java, the generic array cannot be defined directly i.e. you cannot have a parameterized type assigned to an array reference. However, using object arrays and reflection features, you can simulate the generic array creation .

Sizin İçin Seçtik  SHIB Coin nereden alınır?

Leave a Reply

Your email address will not be published. Required fields are marked *