Just wondering, how would you read out loud the following items using generic types?
1) class Box<T>
2) Box<Integer> integerBox
3) class Box<T,U>
4) <T,U> void doSomething(T t, U u)
Thanks
1) class Box<T> Box of T
2) Box<Integer> integerBox Box of Integer
3) class Box<T,U> Box of T,U
4) <T,U> void doSomething(T t, U u) Just a method which accepts two type parameters T and U
References:
Generics Tutorial
Java Generics FAQs - Frequently Asked Questions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With