•  

Tricky Java Generics

A session at JEEConf 2016

Friday 20th May, 2016

10:00am to 10:45am (KMT)

Generics were added to the Java language more than 10 year ago. But do you really understand them?

We’ll discuss:

  • What is heap pollution?
  • How does the compiler translate generics?
  • Why it’s not allowed to create parametrized array (List<String>[])
  • What are bridge methods, can we reach them?
  • Type erasure rules
  • Difference between List, List<Object>, List<?>
  • Why it’s not allowed to add Integer to List<? extends Number>
  • Why it’s not allowed to parameterize exception classes?
  • What’s wrong with Collections.max signature: <T extends Object & Comparable<? super T>> T max(Collection<? extends T> coll);
  • Code that should be compiled, but can’t be compiled and vice versa
  • How to write good API using generics and wildcards
  • And other generic puzzlers

About the speaker

This person is speaking at this event.
Alexander Matorin

System Architect at Sberbank-Technology bio from LinkedIn

Sign in to add slides, notes or videos to this session

JEEConf 2016

Ukraine Ukraine, Kiev

20th21st May 2016

Tell your friends!

When

Time 10:00am10:45am KMT

Date Fri 20th May 2016

Short URL

lanyrd.com/sdyzqb

Official event site

jeeconf.com

View the schedule

Share

See something wrong?

Report an issue with this session