Re:Java 10 – Specification for Value Types
by kelnos on Monday June 19, 2017 @04:13AM
(#14585316)
If you don't have/want "new T", how do you ever create an instance of anything?
[ Parent
| on HN ]
The in this context is a variable, not a concrete type.
Did you mean: "The T in this context..."?
Instantiating a generic type is like a function call at compile time, where the type arguments are substituted for type parameters in the body of the generic type. It's a variable at compile time, but it's a concrete type at runtime for any version of the code that can execute.