When should you use ? extends T? - Cracking the Java Coding Interview

preview_player
Показать описание
Cracking the #Java #Coding #Interview - Question 91: When should you use ? extends T?
Рекомендации по теме
Комментарии
Автор

Your enthusiasm for programming is contagious! It motivates me to keep learning.

MyCodingDiary
Автор

Producer extends, consumer super, the PECS principle

VuLinhAssassin
Автор

This is the most useful thing in any application in any language

mmo
Автор

Next question what is <? super T> mean 🤔

onelastday
Автор

These shorts are keeping me away from tutorial hell😅

ajaythombare
Автор

AFAIK, the Java Compiler names it a "Capture", a higher bound capture (? extends T) and a lower bound capture (? super T).

pavlg
Автор

Yeah and they are painful to deal with... Especially if you deal with autogenerated code...

Speiger
Автор

But here I can see (? super T ) not (? extends T) What is the differences between them

raeedtech
Автор

I did not know that Type<Double> is a subtype of Type<? extends Number> . The semantics seem a little strange. thanks 👌

madskaddie
Автор

i just have one question how many cups of coffee did you drink during this show it is already 91 and still counting 😂

yassineaitmalek
visit shbcf.ru