검색결과 리스트
글
링크 : http://docs.oracle.com/javase/tutorial/java/generics/wildcards.html
Wildcards
In generic code, the question mark (?), called the wildcard, represents an unknown type. The wildcard can be used in a variety of situations: as the type of a parameter, field, or local variable; sometimes as a return type (though it is better programming practice to be more specific). The wildcard is never used as a type argument for a generic method invocation, a generic class instance creation, or a supertype.
The following sections discuss wildcards in more detail, including upper bounded wildcards, lower bounded wildcards, and wildcard capture.
'Java > Java' 카테고리의 다른 글
[Java] JDK Download (0) | 2013.04.02 |
---|---|
[Java] Creating Custom Annotations and Using Them (0) | 2013.01.21 |
[Java] JConsole 연결 옵션 (0) | 2013.01.05 |
[Java] Java 모니터링 툴 VisualVM Download (0) | 2012.12.28 |
[java] Heap Memory Size 구하기 (0) | 2012.12.26 |
RECENT COMMENT