January 2012
Intermediate to advanced
396 pages
8h 16m
English
The following are the best practices to be followed while using Generics:
Stack<T> for a Last In First Out (LIFO) list implementation.Queue<T> for a First In First Out (FIFO) implementation.List<T> for random access lists with zero-based indexing.LinkedList<T> to implement a deque because it offers faster insertion and deletion at both ends as opposed to other collections.LinkedList<T> over List<T> because LinkedList<T> is a constant time operation to insert one item in between two elements in a linked list.Read now
Unlock full access