I have come across many java programs where I have found a style of programming new to me:
Class_name<...>
Can anyone plase explain what is this.?
I have come across many java programs where I have found a style of programming new to me:
Class_name<...>
Can anyone plase explain what is this.?
Generics in Java. Take a look at this http://docs.oracle.com/javase/tutorial/java/generics/
Angular backets are used to specify generics.
Check this post: Why is Java's Class<T> generic?
http://docs.oracle.com/javase/tutorial/java/generics/ will help. generic type is in short saying a param of type Object will in fact be using specified class or interface instead. so you can have an array list with just strings. why - type safety (less bugs that are difficult to spot) and easier to type.