摘要: In jdk1.7 and above, The algorithm of sort had been changed from mergesort to timsort, (The further detail of this can be seen here) The new sort() re 阅读全文
posted @ 2016-03-18 16:15 SunCosmo 阅读(144) 评论(0) 推荐(0)
摘要: 1) In the process of inheritance, the contants have same names in super class would not be overrided but be hidden. However the methods have same name... 阅读全文
posted @ 2015-08-20 22:35 SunCosmo 阅读(142) 评论(0) 推荐(0)
摘要: This is the super class Human:class Human { String name = "Human"; String sex = "Humanity"; public String getHuman(){ return this.name... 阅读全文
posted @ 2015-08-17 22:20 SunCosmo 阅读(138) 评论(0) 推荐(0)
摘要: leetCode problems of Algotithms从今天开始尝试用纯英文写随笔,当是锻炼自己的英语水平吧。希望自己以后能看懂~Because I don't know that if the leetCode.com has any disagreements about sharing... 阅读全文
posted @ 2015-08-14 22:40 SunCosmo 阅读(176) 评论(0) 推荐(0)
摘要: (1) 方法重载是让类以统一的方式处理不同类型数据的一种手段。多个同名函数同时存在,具有不同的参数个数/类型。重载Overloading是一个类中多态性的一种表现。(2)Java的方法重载,就是在类中可以创建多个方法,它们具有相同的名字,但具有不同的参数和不同的定义。调用方法时通过传递给它们的不同参... 阅读全文
posted @ 2015-08-14 09:54 SunCosmo 阅读(477) 评论(0) 推荐(0)