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