package Nov2016; import java.util.LinkedList; import java.util.List; public class Ques1125 { public static void main(String[] args){ List list01 = new LinkedList(); List list02 = new LinkedList(){}; List list03 = new LinkedList(){{}}; System.out.println(list01.getClass() == list02.getClass()); System.out.println(list02.getClass() == list03.getClass()); System.out.println(list01.getClass() == list03.getClass()); } }
今日問題:
請問主程序能否正常編譯通過輸出結果?(點擊以下“【Java每日一題】20161125”查看20161124問題解析)
題目原發布於公眾號、簡書:【Java每日一題】20161125,【Java每日一題】20161125