By Tori Wieldt-Oracle on Aug 07, 2014
In the new OTN tech article "Generics: How They Work and Why They Are Important," developer and book author Josh Juneau helps you gain a solid understanding of generics in Java SE 8.
There has been a lot of excitement in the Java world with the release of Java SE 8. New and updated language features in the release allow developers to be more productive by decreasing the amount of code that needs to be written and by making code easier to use. To fully understand the implementation of some new features, such as lambdas, it is important to understand the core concepts of the language. One such concept that plays an important role in many Java SE 8 features is generics.
The article provides some basic examples of how generics can be used to implement a solution that provides strong type-checking along with type flexibility. It also shows how generics play an important role in algorithms, and such is the case with the Collections API and functional interfaces, which are used for the enablement of lambda expressions.
Read OTN's "Generics: How They Work and Why They Are Important"
Article author Josh Juneau has written the following books: The Definitive Guide to Jython and PL/SQL Recipes (both Apress, 2010). Josh recently authored Java EE 7 Recipes and Introducing Java EE 7 (both Apress, 2013) and is working on the upcoming Apress book Java 8 Recipes, which will be published later this year.