You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+75-1Lines changed: 75 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5264,7 +5264,81 @@ public class Example <T extends List<Number>>{
5264
5264
5265
5265
<h3> <i> Here "Example eg = new Example();" is in raw type i.e. doesnot mention "Type" in " < > " operator. </i></h3>
5266
5266
5267
-
<h3><i><ins>Sub Types:</ins></i> </h3>
5267
+
<h3><i><ins>Sub Types:</ins></i> We can subtype a generic class or interface by extending or implementing it. The relationship between the type parameters of one class or interface and the type parameters of another are determined by the extends and implements clauses.</h3>
5268
+
5269
+
<h3align="Left">
5270
+
5271
+
```
5272
+
5273
+
import java.util.ArrayList;
5274
+
import java.util.List;
5275
+
5276
+
interface b2<T> extends List<T> { }
5277
+
5278
+
public class Example3<T extends b2<? extends Number>> {
0 commit comments