JavaSE:作业练习
文章目录 1、数组扩容 2、Arrays.sort是哪种排序方式 3、包和权限修饰符 3.1 public权限测试 3.2 protected权限测试 3.3 默认权限测试 4、重写和重载的区别 5、Object的方法的作用 5.1、registerNatives() 5.2、getClass() 5.3、hashCode() 5.4、equals() 5.4、clone() 5.5、toString() 5.6、wait()/ wait(long)/ waite(long,int) 5.7、notify()/notifyAll() 5.8、finalize() 5.8.1、对象在内存中的状态 5.8.2、垃圾回收机制 5.8.3、强制垃圾回收 6、抽象类和接口的区别 7、equals 跟 ==的区别 8、Queue中offer,remove,poll,peek区别 9、Collections.sort如何排序 1、数组扩容 import java . util . Arrays ; public class ArrayKuoRong { public static void main ( String [ ] args ) { int [ ] arr = { 1 , 2 , 3 , 4 , 5 } ; System . out . println ( arr ) ; for (