多項(xiàng)選擇題

Given:

Which two code fragments, inserted independently at line 5, will compile without warnings?()

A.public void addStrings(List list) {
B.public void addStrings(List<String> list) {
C.public void addStrings(List<? super String> list) {
D.public void addStrings(List<? extends String> list) {  B,C

微信掃碼免費(fèi)搜題