View RSS Feed

Recent Blogs Posts

  1. Generic List in Java

    by , 02-18-2012 at 03:43 PM
    It is possible to do the generification of java.util.List. This shows that List instances might be of a specific type. That type of instances in such cases could only be read from List.

    Generic List is explained by this code.
    Java Code: This is the code to expalin Generic List declaration
    List<String> list = new ArrayList<String>;
    String instances can be stored by this list.

    Exists are being checked just at the compilation time by this generic type.

    Accessing a Generic ...
    Tags: generic list Add / Edit Tags
    Categories
    Generics