请问HashMap.clear()或ArrayList.clear()释放内存缩小规模或大小保持不变?
HashMap.clear()
ArrayList.clear()
如何null为gc允许arraylist或hashmap引用.
null
java core
core ×1
java ×1