This course introduces you to the generics feature that was added to Java with the Java 2 5.0 release. It demonstrates how to create generic classes, interfaces, and methods in which the type of data on which they operate is specified as a parameter.
Objectives:
Describe the role of generics in Java programming
Create generic classes, interfaces, and methods
Use the generic wildcard argument to represent unknown types
Use raw types to make legacy code compatible with generic code
Explain how the Java compiler uses erasure to implement generics
List the restrictions to using generics in Java
Topics:
Generics fundamentals
Objects and type arguments
Bounded types
Wildcard arguments
Bounded wildcards
Generic methods
Generic constructors
Generic interfaces
Raw types and legacy code
Erasure and ambiguity errors
Generic restrictions
Technical Requirements:
P500+ Processor, 128MB of RAM; Windows 2000, 2003, XP, Minimum screen resolution 800x600, Internet Explorer 6.0 or higher; Windows Media Player 9.0 or higher; Adobe Flash Player 8.0 or higher; 56K minimum connection; broadband (256 kpbs or higher) connection recommended; Cookies enabled; Sound card with speakers or headphones strongly recommended.