Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 14. Generics

14. Generics

Exam Objectives

6.4Develop code that makes proper use of type parameters in class/interface declarations, instance variables, method arguments, and return types; and write generic methods or methods that make use of wildcard types and understand the similarities and differences between these two approaches.


Supplementary Objectives

  • Distinguishing between generic types and parameterized types

  • Identifying contexts where unchecked warnings can be issued, and why they signal potential problems with type-safety

  • Using bounded type parameters

  • Understanding type capture

  • Understanding implications of type erasure

  • Understanding implications for overloading and overriding

  • Understanding reifiable types, and where they are required

  • Understanding implications and restrictions for instance tests, casting, arrays, varargs, and exception handling


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial