tailieunhanh - Introduction to java programming: Chapter 21 - Generics

Introduction to java programming: Chapter 21 - Generic's Objectives is to use generic classes and interfaces; declare generic classes and interfaces; understand why generic types can improve reliability and robustness; declare and use generic methods and bounded generic types. | Chapter 21 Generics Chapter 11 Object-Oriented Design Chapter 20 Lists Stacks Queues Trees and Heaps Chapter 21 Generics Chapter 22 Java Collections Framework Chapter 19 Recursion Chapter 23 Algorithm Efficiency and Sorting Liang Introduction to Java Programming Fifth Edition c 2005 Pearson Education Inc. All rights reserved. 0-13-148952-6 1 Objectives To use generic classes and interfaces . To declare generic classes and interfaces . To understand why generic types can improve reliability and robustness . To declare and use generic methods and bounded generic types . To use raw types for backward compatibility . To know wildcard types and understand why they are necessary . To understand that all instances of a generic class share the same runtime class file . To convert legacy code using JDK generics . To design and implement a generic matrix class . Liang Introduction to Java Programming Fifth Edition c 2005 Pearson Education Inc. All rights reserved. 0-13-148952-6 Why Do You Get a Warning public class ShowUncheckedWarning public static void main String args list new To understand the compile warning on this line you need to learn JDK generics. Liang Introduction to Java Programming Fifth Edition c 2005 Pearson Education Inc. All rights reserved. .