Although the code will fail to compile in Java 6 with the following error: "Unresolved compilation problems: The method getArgumentClass(Object) of raw type Test is no longer generic; it cannot be parameterized with arguments" - in Java 7 this issue has been fixed.
The compiler will show the following warning message: "Type safety: The method getArgumentClass(Object) belongs to the raw type Test. References to generic type Test<m> should be parameterized", but the code will compile and the output will be
true
true
true
Ввійдіть щоб вподобати
Ввійдіть щоб прокоментувати