The Good, Bad, and Ugly of Java Generics

preview_player
Показать описание
The Generics feature of the Java language was intended to bring overall type safety to Java. This session starts at the basics of Generics and looks at its capabilities. It presents some of the under-the-hood details of Generics implementation and then delves into some of the changes to Java libraries for accommodating Generics. Finally, it takes a look at some restrictions and pitfalls we need to be familiar with when it comes to relying on Generics.

Copyright © 2013 Oracle and/or its affiliates. Oracle® is a registered trademark of Oracle and/or its affiliates. All rights reserved. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the "Materials"). The Materials are provided "as is" without any warranty of any kind, either express or implied, including without limitation warranties of merchantability, fitness for a particular purpose, and non-infringement.
Рекомендации по теме
Комментарии
Автор

This video is a blessing, specially for the <? super T> that I didn't know about until now.
So, if I am aware of the bad side of the Java as described in this lecture and I carefully follow that, I am good to go with the Generics heavily as much as possible in my application, right?

deletevil
Автор

At the end you accidentally say "convert from generic to non-generic" twice instead of the other way around. Of course, I am more interested in finding out whether Reification ever happened in Java 9, 10, 11, 12 or 13, but I wanted to review the basics first.

jvsnyc
Автор

Gr8 tutorial. What toold/ide/interpreter are you using?

premalshah
Автор

Generics seems to cause a lot more problems than it cures.

carlhopkinson
Автор

Great Tutorial. But not for beginners.

SrikanthReddymalyala
Автор

Gr8 tutorial. What toold/ide/interpreter are you using?

liqunsun