What is type as generic in Java?

Generics means parameterized types . The idea is to allow type (Integer, String, … etc., and user-defined types) to be a parameter to methods, classes, and interfaces. Using Generics, it is possible to create classes that work with different data types.

Sizin İçin Seçtik  How do you check if an object is an integer in Java?

Leave a Reply

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