Discussions

General J2EE: Can anybody elucidate about significance of "<?>" in java.

  1. Hi Java folks,

    Can anybody elucidate about use of "<?>" in certain java codes.

    E.G.
    public static Class<?> getProxyClass(ClassLoader loader,
                                             Class<?>... interfaces)

    Here I am totally blank as What exactly is mean by "<?>" postfix after Class keyword.

    Regards,
    Shiv
  2. This is new (Java 1.5) syntax for Generic types - similar to templates in C++. You can find out the details by looking for a Java 1.5 features tutorial on the web. The specific Java 1.5 feature you want to look at is Generics.
  3. Thanks Ray.